G
Guest
I am trying to find the difference between two datasets. I have tried
merging the two datasets and then writing an xml diffgram like so:
dsA.AcceptChanges();
dsA.Merge(dsB, true);
dsA.WriteXml("D:/dev/Changes.xml", XmlWriteMode.DiffGram);
It would make sense that the merge would only change the records in dsA that
are different from dsB. However, when I look at the XML file, it is showing
every row as "modified" event when the previous and current values are the
same.
Am I doing something wrong here, or will it always show every row as
modified when I execute the merge method. Or, does someone know of a better
way to show differences between two similar datasets. I am trying to aviod
parsing through every row if at all possible.
Thanks,
Joe Sullivan
(e-mail address removed)
Data Systems Administrator
Great Commission Ministries
merging the two datasets and then writing an xml diffgram like so:
dsA.AcceptChanges();
dsA.Merge(dsB, true);
dsA.WriteXml("D:/dev/Changes.xml", XmlWriteMode.DiffGram);
It would make sense that the merge would only change the records in dsA that
are different from dsB. However, when I look at the XML file, it is showing
every row as "modified" event when the previous and current values are the
same.
Am I doing something wrong here, or will it always show every row as
modified when I execute the merge method. Or, does someone know of a better
way to show differences between two similar datasets. I am trying to aviod
parsing through every row if at all possible.
Thanks,
Joe Sullivan
(e-mail address removed)
Data Systems Administrator
Great Commission Ministries