PC Review


Reply
Thread Tools Rate Thread

Dealing with DBConcurrencyException error in multi-table scenario

 
 
John
Guest
Posts: n/a
 
      6th May 2008
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

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
Multi-threaded and multi-AppDomain test scenario. Giulio Petrucci Microsoft C# .NET 7 9th Apr 2010 04:30 PM
Dealing with DBConcurrencyException error in multi-table scenario John Microsoft ADO .NET 0 6th May 2008 08:00 PM
Multi-scenario presentation? verm25@hotmail.com Microsoft Powerpoint 5 6th Sep 2007 01:30 PM
Switching to a multi-user scenario =?Utf-8?B?ZG9nbWVsaXNzYQ==?= Microsoft Access 2 30th May 2004 11:07 PM
Perfect Multi-Boot Scenario ? john444@ntlworld.com Windows XP Setup 5 17th Sep 2003 08:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:34 PM.