T
thecolour
Dear all,
I have to perform a programatic reconciliation of two sets of data
which are based on the same schema. I thought a brilliant way to do
this would be to use the dataset.getchanges() method, and then write
the changes out as a diffgram using the dataset.writexml() method.
The way I am trying to do this involves:
1) creating a dataset
2) loading datatable1 into it
3) calling acceptchanges()
4) loading datatable2 into it
5) calling getchanges()
6) creating the diffgram by calling writexml()
However, I have found that even though the two datatables are based on
the same schema with the same primary key values, the getchanges()
method doesn't seem to be able to treat
Row
ID Textvalue
1 Test (from datatable1)
1 Test (from datatable2)
as equivalent, so even though the row data has not changed, the
getchanges() method returns the row as changed, seemingly because it
has been replaced with a rows from another datatable.
This is a problem, as I only want the getchanges() method to return
changes to the actual data.
Have I explained this clearly enough, and would someone please please
be good enough to give me some pointers?
Many thanks
Tom
I have to perform a programatic reconciliation of two sets of data
which are based on the same schema. I thought a brilliant way to do
this would be to use the dataset.getchanges() method, and then write
the changes out as a diffgram using the dataset.writexml() method.
The way I am trying to do this involves:
1) creating a dataset
2) loading datatable1 into it
3) calling acceptchanges()
4) loading datatable2 into it
5) calling getchanges()
6) creating the diffgram by calling writexml()
However, I have found that even though the two datatables are based on
the same schema with the same primary key values, the getchanges()
method doesn't seem to be able to treat
Row
ID Textvalue
1 Test (from datatable1)
1 Test (from datatable2)
as equivalent, so even though the row data has not changed, the
getchanges() method returns the row as changed, seemingly because it
has been replaced with a rows from another datatable.
This is a problem, as I only want the getchanges() method to return
changes to the actual data.
Have I explained this clearly enough, and would someone please please
be good enough to give me some pointers?
Many thanks
Tom