Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

how to configure access database file with app.config file?

$
0
0

hi ever one i have project in c# and access 2010 ... in my project i have some windows forms in each form i use . . .OleDbConnection db_con = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\HUNAR\Desktop\Bashi Nawxoyy\Bashi Nawxoyy\bin\Debug\db_file.accdb;Jet OLEDB:Database Password=RTm$&9sdfZXC;Persist Security Info=True");... to link to the database file that named db_file.accdb.

1-  i want to configure db connection in app.config file and call it in each form

2- if i create setup file(project_name.exe) for my project , how i make .exe file be able connect to db_file.accdb in any machine that i install the exe file on it ie. attach db file with setup file and after installation connect to db file directly???


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>