Microsoft KB Archive/241717

From BetaArchive Wiki
Knowledge Base


FIX: Update Statement Conflicts with Foreign Key Constraint

Article ID: 241717

Article Last Modified on 3/14/2006



APPLIES TO

  • Microsoft SQL Server 7.0 Standard Edition



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 ''.
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.

Keywords: kbbug kbfix KB241717