|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Concurrency violation: the UpdateCommand affected 0 of the expecteHi
When I want to update a record folowing exception has been appeared: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records Can anyone help me about the cause of the exception? regards Mehdi mkomasi <mkom***@discussions.microsoft.com> wrote:
> When I want to update a record folowing exception has been appeared: An update command usually contains a "where" clause to update the right > Concurrency violation: the UpdateCommand affected 0 of the expected 1 records > Can anyone help me about the cause of the exception? row. In this case, it sounds like the "where" clause didn't match anything, so it didn't update any rows. Now, as to why that happened, we'll need more information about what you're doing... -- Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet If replying to the group, please do not mail me too
Other interesting topics
Learning & Frustration.
Most popular object persistence framework Programmatic diagnostic questions about dlls Is This Overkill? Using cacheing?? Merging Visual Studio & SDK Help custom serialization..need help Right Click Context Menu of a C# windows application not working o compact framework DoEvents in c#.net |
|||||||||||||||||||||||