PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Dealing with DBConcurrencyException error in multi-table scenario

Reply

Dealing with DBConcurrencyException error in multi-table scenario

 
Thread Tools Rate Thread
Old 06-05-2008, 08:00 PM   #1
John
Guest
 
Posts: n/a
Default Dealing with DBConcurrencyException error in multi-table scenario


Hi

I am handling DBConcurrencyException for an adapter manager using code
below. My problem is how to merge table in error with its copy from
underlying database. If I need the table's data adapter for the merge, can I
extract the data adapter at run time from the information I have viz adapter
manager, dataset and the table in error.

Thanks

Regards


Try
Me.TableAdapterManager.UpdateAll(Me.MyDataSet)

Catch ex As DBConcurrencyException

For Each MyTable In MyDataSet.Tables
If MyTable.HasErrors Then

' How do I merge MyTable with the database copy of
itself here?

End If
Next

End Try


  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off