FIX: Error Message 547: "Update statement conflicted with TABLE.." (256307)
The information in this article applies to:
This article was previously published under Q256307
BUG #: 53833 (SQLBUG_70)
SYMPTOMS
When you update a table that has a composite foreign key, and one of the columns in the foreign key constraint is NULL, the update fails with this error:
Server: Msg 547, Level 16, State 1, Line 1
Update statement conflicted with TABLE FOREIGN KEY constraint 'FK1'. The conflict occurred in database 'pubs', table 'Pk'.
The statement has been terminated.
As stated in SQL Server Books Online, you should skip the verification of the FOREIGN KEY constraint.
WORKAROUND
Here are two ways to work around this:
- Define all the columns used in a foreign key constraint as NOT NULL.
-or-
- Update all the columns used in a foreign key constraint in the same update statement.
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 KB256307 |
---|
|