FIX: Update Statement Conflicts with Foreign Key Constraint (241717)
The information in this article applies to:
This article was previously published under Q241717
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.
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.
Modification Type: | Major | Last Reviewed: | 3/14/2006 |
---|
Keywords: | kbBug kbfix KB241717 |
---|
|