M
mike11d11
I'm trying to create an application that will have multiple users
working off a table on a SQL server. Since multi users will be
updating different records at any given moment, how can i get those
changes and merge them into my current Dataset. I've been playing
around with the GetChanges method and Acceptchanges but they just dont
seem to be pulling over the changes and updating my Dataset. Maybe if
someone could give me a sample of Code to use or try, anything is
appreciated. Here is what I'm trying in my code but doesnt work.
Try
Me.AccuLogic_SQLDataSet.GetChanges()
Me.AccuLogic_SQLDataSet.AcceptChanges()
Me.Collect_Work_List_BackupTableAdapter.Update(Me.AccuLogic_SQLDataSet.Collect_Work_List_Backup)
MessageBox.Show("The update was successful!")
Catch ex As Exception
MessageBox.Show("Update Failed " & ex.Message.ToString,
ex.GetType.ToString)
End Try
working off a table on a SQL server. Since multi users will be
updating different records at any given moment, how can i get those
changes and merge them into my current Dataset. I've been playing
around with the GetChanges method and Acceptchanges but they just dont
seem to be pulling over the changes and updating my Dataset. Maybe if
someone could give me a sample of Code to use or try, anything is
appreciated. Here is what I'm trying in my code but doesnt work.
Try
Me.AccuLogic_SQLDataSet.GetChanges()
Me.AccuLogic_SQLDataSet.AcceptChanges()
Me.Collect_Work_List_BackupTableAdapter.Update(Me.AccuLogic_SQLDataSet.Collect_Work_List_Backup)
MessageBox.Show("The update was successful!")
Catch ex As Exception
MessageBox.Show("Update Failed " & ex.Message.ToString,
ex.GetType.ToString)
End Try