Access Database connect C# local director
- by Bomboe Cristian
I want my connection to the database to be available all the time, so if i move the folder with the project, to an other computer, the connection to be made automaticaly.
So, how can i change this connection:
this.oleDbConnection1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"C:\\Documents and Settings\\Cristi\\Do" +
"cuments\\Visual Studio 2008\\Projects\\WindowsApplication3\\bd1.mdb\"";
???
It should read the project directory or something. I don't know. Any ideas?
Thank You!