BUG: Update Statement Conflicts with Foreign Key Constraint

ID: Q241717


The information in this article applies to:
  • Microsoft SQL Server version 7.0

BUG #: 55638 (SQLBUG_70)

SYMPTOMS

When you attempt to update a row in a table that contains a multi-column foreign key, and one of the columns making up the foreign key contains a null value, you will receive the following error message:

Server: Msg 547, Level 16, State 1, Line 1
UPDATE statement conflicted with TABLE FOREIGN KEY constraint '<foreign key constraint name>'. The conflict occurred in database '<database name>', table '<table name>'.
The statement has been terminated.


WORKAROUND

Replace the UPDATE with a DELETE and an INSERT.


STATUS

Microsoft has confirmed this to be a problem in SQL Server version 7.0.

Additional query words:

Keywords : kbSQLServ700bug
Version : winnt:7.0
Platform : winnt
Issue type : kbbug


Last Reviewed: December 14, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.