A
Andreas Huber
Hi there
I have two typed DataSets. One represents the state of a certain DB
table some time ago, the other represents the current state of the
same DB table. Now I would like to get the changes in a third table,
each row with the appropriate row state Added, Deleted or Modified. Is
there any way to do that with .NET (except for hand-crafting the
comparison myself)?
I have tried to get the changes with setting
SqlDataAdapter.AcceptChangesDuringFill to false and then filling the
old data set. But this sets *all* rows to Modified, even if there was
no change at all!
I need this functionality because I only want to send the data that
has actually changed to the clients (transmitting the full DataSet is
not an option because it can very well be 60MB+ in size and network
bandwith is precious).
Any help is greatly appreciated.
Thanks,
Andreas
I have two typed DataSets. One represents the state of a certain DB
table some time ago, the other represents the current state of the
same DB table. Now I would like to get the changes in a third table,
each row with the appropriate row state Added, Deleted or Modified. Is
there any way to do that with .NET (except for hand-crafting the
comparison myself)?
I have tried to get the changes with setting
SqlDataAdapter.AcceptChangesDuringFill to false and then filling the
old data set. But this sets *all* rows to Modified, even if there was
no change at all!
I need this functionality because I only want to send the data that
has actually changed to the clients (transmitting the full DataSet is
not an option because it can very well be 60MB+ in size and network
bandwith is precious).
Any help is greatly appreciated.
Thanks,
Andreas