Add database into code

swethajain

Well-known member
Joined
Feb 1, 2010
Messages
48
Programming Experience
Beginner
Hi,
I have written a code to insert records into msaccess batabase. The problem is when i send the file to any one they have to write the path of the database in Cofiguration manager data source. I want the database to be in the solution explorer so that their is no need for them to change the path and run the file.
can anyone help me?

Thanks,
Swetha.
 
Follow the advice given in the DW2 link in my dignature, in the Creating a Simple Data App tutorial; that will get you an app that reads and writes a database and has a connection string in te xml config file. You can change the setting during runtime with some tricks; search these forums for "change connection string runtime"
 
Back
Top