Concurancy violation when updating DataBase

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
 
U

Uri Dor

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top