PC Review


Reply
Thread Tools Rate Thread

Concurrency violation handling in data adapter

 
 
John
Guest
Posts: n/a
 
      28th Feb 2010
Hi

When one updates an adapter like DataAdapter.Update(DataTable) and one gets
the concurrency violation error, what is the recommended method to resolve
the violation gracefully? A code segment would be very much appreciated.

Many Thanks

Regards


 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      28th Feb 2010
There is no default method, this depends completely from the data that gives
the currency violation.

If it is by instance a value, then it is most common to give a message that
it is not done and to start new.

This is the not nice part of programming, I don't think that you get simple
snippets for instance because that it can give big money risks.

(Ignoring concurrency is a standard example how fraud can be done and has to
be protected)





"John" <(E-Mail Removed)> wrote in message
news:eq4X#(E-Mail Removed)...
> Hi
>
> When one updates an adapter like DataAdapter.Update(DataTable) and one
> gets the concurrency violation error, what is the recommended method to
> resolve the violation gracefully? A code segment would be very much
> appreciated.
>
> Many Thanks
>
> Regards
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Concurrency violation handling in data adapter John Microsoft VB .NET 1 28th Feb 2010 07:59 AM
Handling concurrency with table adapter manager John Microsoft ADO .NET 1 16th Nov 2008 03:09 AM
Concurrency violation on Row Delete in Data Grid BobAchgill Microsoft VB .NET 2 12th May 2005 09:20 PM
error handling when updating a datasource via a data adapter =?Utf-8?B?bWF0dGhldyBjLiBoYXJhZA==?= Microsoft ADO .NET 2 8th Sep 2004 05:49 AM
Optimistic Concurrency causing Data Adapter Configuration Wizard Error Graham Long Microsoft ADO .NET 1 11th May 2004 08:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:26 AM.