To identify the tables in which the changes have occurred you'll need to take MrClyfar's code a bit further. For instance, after line 14 you could insert
For Each dt As DataTable In dsChanges.Tables
If dt.Rows.Count > 0 Then
Debug.WriteLine(dt.TableNa
Else
Debug.WriteLine(dt.TableNa
End If
Next
Roger
Main Topics
Browse All Topics





by: MrClyfarPosted on 2007-12-28 at 14:36:05ID: 20545766
Hi there.
.com/aspxt reme/sys/d ata/ DataSe tClassHasC hanges.asp x 47referenc e/msgs/57/ 285997.asp x ebLog/chri sfalter/ar chive/2006 /02/ 28/135 648.aspx
Check out the GetChanges method of the DataSet class. Check out the sample code I've posted as an example. Here are also a couple of links to articles that might help you:
http://authors.aspalliance
http://www.dotnet247.com/2
http://dotnetjunkies.com/W
Hope this helps.
Jas.
Select allOpen in new window