The information in this article applies to:
BUG #: 13700 (Windows NT: 6.5) SYMPTOMS
If you set up a FOREIGN KEY constraint to reference a table that is
populated by replication (that is, a subscribed table), a constraint
violation may occur if an UPDATE is run against the published table.
This will cause the distribution task to fail with the following error:
The NOT FOR REPLICATION option should allow changes submitted by the Distribution task on columns referenced by a FOREIGN KEY constraint from another table that otherwise would violate the constraint. WORKAROUND
Change your UPDATE statement to run as an "on-page delete/insert." For
additional information, please see the following article in the Microsoft
Knowledge Base:
Q135871 : INF: Update Methods Used in SQL Server 6.0 If you cannot change your UPDATE statement to meet this criteria, you may not be able to create a FOREIGN KEY constraint in the subscribed database to reference a subscribed table. STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider. MORE INFORMATION
This problem will occur if the UPDATE on the published table is processed
as a "deferred" or "full delete/insert" UPDATE statement. For additional
information about determining what type of UPDATE statement is being
processed, please see the Microsoft Knowledge Base article listed above.
Additional query words: sql6 rep kbfix6.50.sp2
Keywords : kbprg SSrvRep kbbug6.50 kbbug6.00 kbfix6.50.sp2 |
Last Reviewed: March 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |