Microsoft KB Archive/308819

= FIX: Merge Replication Snapshot Agent Fails with Error &quot;Line 1: Incorrect syntax near 'as'.&quot; =

Article ID: 308819

Article Last Modified on 10/16/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition

-



This article was previously published under Q308819



BUG #: 354686 (SHILOH_BUGS)



SYMPTOMS
If a table is published in more than one merge publication and is involved in a join filter in one of the publications, the snapshot agent may fail with the following error message:

Line 1: Incorrect syntax near 'as'.



CAUSE
When the second snapshot agent is run on the publisher, it does not run the sp_MSprepare_mergearticle system stored procedure. This causes the snapshot agent to not check for the before_image_objid column value, resulting in an incorrect syntax error.



RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft 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



WORKAROUND
You can work around this problem in the following ways:
 * Do not add the same table to more than one merge publication.
 * Do not involve that table in any join filters in the publication.



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

Keywords: kbbug kbfix KB308819

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.