Relative path in a connection string

beanman101283

2[H]4U
Joined
Nov 4, 2004
Messages
3,051
At work we've started a new project using a Subversion repository. Everyone keeps their local copy wherever they want on their machine, but the file structure of the project has three folders: GUI, Database, and Model. The GUI folder holds the Visual Studio project and the Database folder holds an Access db. I've created a dataset and it connects to the database fine. The problem is that when someone updates their local copy it has the absolute path of the database on my machine. Is there some way to make a relative path in the connection string? We tried various incarnations of putting \..\ in the path and that doesn't seem to work. Using an environment variable also doesn't work. Do we need to get everyone standardized on the same path for their local copy instead? Or do you need more info from me?
 
Back
Top