I have .mdb
database, and code like this:
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
It is most likely the WHERE clause of your update statement isn't locating any records to update.
http://weblogs.asp.net/stevewellens/archive/2009/10/16/why-sql-updates-fail-three-reasons.aspx