Access Database connect C# local director
Posted
by Bomboe Cristian
on Stack Overflow
See other posts from Stack Overflow
or by Bomboe Cristian
Published on 2010-05-11T16:20:58Z
Indexed on
2010/05/11
16:24 UTC
Read the original article
Hit count: 343
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!
© Stack Overflow or respective owner