S
Steven Spits
Hi,
We have a case where there will be temporarly duplicate keys during the
update process. For example, Key "A" becomes "B" and "B" becomes "C". When
"A" is set to "B", we get a duplicate key error because "B" already exists
in the table.
Is there a way to temporarly disable all constraints at the beginning of a
batch update and enable it again when we're all done?
I've tried ALTER TABLE name NOCHECK CONSTRAINT ALL, but this only seems to
affect foreign keys.
Steven
- - -
We have a case where there will be temporarly duplicate keys during the
update process. For example, Key "A" becomes "B" and "B" becomes "C". When
"A" is set to "B", we get a duplicate key error because "B" already exists
in the table.
Is there a way to temporarly disable all constraints at the beginning of a
batch update and enable it again when we're all done?
I've tried ALTER TABLE name NOCHECK CONSTRAINT ALL, but this only seems to
affect foreign keys.
Steven
- - -