The information in this article applies to:
SYMPTOMSIn SQL Server 7.0, you do not receive an error message if you perform an update by setting a column to itself against a table that contains FOREIGN KEY constraint violation data. However, in SQL Server 6.5, you receive the following error:
CAUSEThis is by design. SQL Server 7.0 no longer updates a column with the same value because the "key" is not changing. WORKAROUNDTo work around this problem, explicitly re-enable constraints, as in the following example:
MORE INFORMATIONSteps to Reproduce the ProblemTo reproduce this problem, run the following script: RESULTS: You do not get an error even if a table contains constraint violation data.
Additional query words: err msg violate const constr fkey fk valid invalid validate
Keywords : SSrvDRI kbbug7.00 kbSQLServ700bug |
Last Reviewed: December 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |