FIX: Merge Replication Stored Procedures May Be Scripted Incorrectly When an Article is in Two Publications (291851)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

This article was previously published under Q291851
BUG #: 351990 (SHILOH_BUGS)

SYMPTOMS

The stored procedures that the the Merge Agent uses may be scripted incorrectly under the following conditions:
  • A table is used as an article in two publications.
  • One of the publications uses a Join filter and the other publication does not use a Join filter.
  • A subscriber subscribes to both publications. The publication may exist on separate publishing servers or there may be two publications on the same publishing server.
The stored procedures scripted for the publication that does not use a Join Filter may be scripted and reference tables used in the Join filter in the other publication. The stored procedures affected are the sp_insxxx, sp_updxxx, and sp_delxxx stored procedures on the subscriber.

CAUSE

The stored procedure used to create the sp_insxxx, sp_updxxx, and sp_delxxx stored procedures does not take into account the publication id.

RESOLUTION

To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

STATUS

Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.

Modification Type:MajorLast Reviewed:11/6/2003
Keywords:kbBug kbfix kbQFE kbSQLServ2000sp1fix KB291851