N
Nate Zobrist
I am trying to write a routine to determine if my database contents have
changed. Currently this is what I do:
* Fill dataSet1 from the database and WriteXml to a file
* perform operations that may change the database
* ReadXML from the file into dataSet1
* Fill dataSet2 from the database
* Then execute this code:
dataSet2.AcceptChanges();
dataSet2.Merge (dataSet1);
bool changed = dataSet2.HasChanges();
This doesn't work. I only need to find out if the database has changed,
I don't need to know what changed (or how much was changed). Can anyone
point me in the right direction?
Thanks,
Nate
changed. Currently this is what I do:
* Fill dataSet1 from the database and WriteXml to a file
* perform operations that may change the database
* ReadXML from the file into dataSet1
* Fill dataSet2 from the database
* Then execute this code:
dataSet2.AcceptChanges();
dataSet2.Merge (dataSet1);
bool changed = dataSet2.HasChanges();
This doesn't work. I only need to find out if the database has changed,
I don't need to know what changed (or how much was changed). Can anyone
point me in the right direction?
Thanks,
Nate