L
lc
Hi,
I have a bit of a mystery with merging updates into dataset. Here's what
I do (roughly):
DataSet dsDelta;
dsDelta = dsOriginal.GetChanges();
dsDelta = FunctionThatCallsAdaptersUpdates( dsDelta );
dsOriginal.Merge( dsDelta );
After merge, I get a very puzzling "Failed to enable constraints. One or
more rows contain vales violating non-null, unique, or foreign-key
constraints...".
This seem to happen only on one of 7 tables in the (typed) dataset. The
table has a primary key; integer; is not auto-increment; and with
respect to keys is no different than any other in the dataset. After the
failed merge I end up looking at two records with identical primary keys.
Am I missing anything in the process or could the dataset schema be
corrupted or... any idea would be truly appreciated!!
TIA.
lc
I have a bit of a mystery with merging updates into dataset. Here's what
I do (roughly):
DataSet dsDelta;
dsDelta = dsOriginal.GetChanges();
dsDelta = FunctionThatCallsAdaptersUpdates( dsDelta );
dsOriginal.Merge( dsDelta );
After merge, I get a very puzzling "Failed to enable constraints. One or
more rows contain vales violating non-null, unique, or foreign-key
constraints...".
This seem to happen only on one of 7 tables in the (typed) dataset. The
table has a primary key; integer; is not auto-increment; and with
respect to keys is no different than any other in the dataset. After the
failed merge I end up looking at two records with identical primary keys.
Am I missing anything in the process or could the dataset schema be
corrupted or... any idea would be truly appreciated!!
TIA.
lc