I have .mdb database, and code like this:
.mdb
using (OleDbConnection connection = new OleDbConnection(myConnectionString)) { using (OleDbCommand
When we we add .mdb in project root in VS ,when change structure ,VS default delete .mdb file in debug folder and replace new file; now you can change this defult :
1- right click .mdb file and select option
2- set Copy To Output Directory to Do Not Copy
Copy To Output Directory
Do Not Copy