FIX: Update Statement Conflicts with Foreign Key Constraint

Article translations Article translations
Article ID: 241717 - View products that this article applies to.
This article was previously published under Q241717
BUG #: 55638 (SQLBUG_70)
Expand all | Collapse all

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.
Replace the UPDATE with a DELETE and an INSERT.

STATUS

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.

Properties

Article ID: 241717 - Last Review: March 14, 2006 - Revision: 2.1
APPLIES TO
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbbug kbfix KB241717

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com