G
Grim Rob
I am commiting changes to several existing records which have been
changed using a DataSet. In my table I have a field called "rank",
which has a unique constraint on it.
The first record has a rank of 1, the second a rank of 2. My update
causes the two ranks to reverse so that the first record now has a rank
of 2, and the second 1.
When I called the Update method of the SqlDataAdapter or OleDataAdapter
(with an Access database this time), I get a constraint violation for
the first record. Yet if it was smart enough to continue to the second
record and save that first there would be no constraint violation.
Is there any way in ADO.NET to do a true batch update so that
table-wide constraints are only applied after all the new records have
been commited?
Grim Rob
changed using a DataSet. In my table I have a field called "rank",
which has a unique constraint on it.
The first record has a rank of 1, the second a rank of 2. My update
causes the two ranks to reverse so that the first record now has a rank
of 2, and the second 1.
When I called the Update method of the SqlDataAdapter or OleDataAdapter
(with an Access database this time), I get a constraint violation for
the first record. Yet if it was smart enough to continue to the second
record and save that first there would be no constraint violation.
Is there any way in ADO.NET to do a true batch update so that
table-wide constraints are only applied after all the new records have
been commited?
Grim Rob