If Server A and Client B are chatting through sockets, and Client B requests a dataset of all accounts on the server it has access to, the server provides that data set to the client (through serialization and sending it over the socket) and the client modifys the data, say it changes a contact name or address or whatever on one or many different records, and sends the dataset back to the server so that the server can update it's records...is there a built-in method to compare the two datasets and perform those updates on the parent data source?
Check out this diagram for what I mean:
Server A | Client B |
-------------------------------------------------
MS Access DB File <= Gimmie data!
DataSet with Data => Modify the data
MS Access DB File <= Save my changes
Okay! All saved! => :) [Smiley Face]
That's the general idea, but I'm trying to get the 3rd step to be a little less complicated than comparing row by row each update.
Is it possible, and this is a stretch I think...
Have the client receive the dataset, and then use a table adapter and bind the dataset to the form and when the client clicks the "save" or whatever button, just extract the SQL methods from the table adapter for the insert, update, delete and transmit the SQL commands over the wire, and have the server perform them?
Also, the communication is encrypted, so I'm assuming sending data like that would be okay to do.
Any suggestions?