Concurancy violation when updating DataBase

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a simple program with no multithreading that would update the database at the same time
But when I run it it gives me this error:

"An unhandled exception of type 'System.Data.DBConcurrencyException' occurred in system.data.dl
Additional information: Concurrency violation: the UpdateCommand affected 0 records.

Please tell me what that can b
Thank
Peter
 
DBConcurrenctException happens when the database has changed between
your Fill(DataSet) and your Update(DataSet).
What can cause such a problem?

- use of AcceptChanges
- other programs updating the DB
- use of Remove instead of Delete

Uri
 
Back
Top