FIX: Update Statement Conflicts with Foreign Key Constraint

This article was previously published under Q241717
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 55638 (SQLBUG_70)
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.
Replace the UPDATE with a DELETE and an INSERT.
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
254561 INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.

Article ID: 241717 - Last Review: 12/05/2015 15:55:09 - Revision: 2.1

Microsoft SQL Server 7.0 Standard Edition

  • kbnosurvey kbarchive kbbug kbfix KB241717