Article ID: 299649 - View products that this article applies to.
This article was previously published under Q299649
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 234529 (SHILOH_BUGS)
If you add a schema only article, such as a view or a stored procedure, to a merge publication without adding the referenced tables, the Merge Agent may fail and this error message occurs:
Error 208: Invalid object name 'object_name'.
This behavior may also occur when you add the referenced table to the merge publication after you add the schema only article, and after generating an initial snapshot for the publication.
Unable to replicate a view or function because the referenced objects or columns are not present on the Subscriber.
The sysmergeschemachange merge system table contains information about the published articles that are generated by the Snapshot Agent. When a referenced table is added after the schema only article, the schemaversion of the referenced table is higher than the schemaversion of the schema only article, which causes the error.
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:
(https://support.microsoft.com/kb/290211/EN-US/ )INF: How to Obtain the Latest SQL Server 2000 Service Pack
To avoid this behavior when you add a view or stored procedure article to a merge publication, also add all the tables referenced by the view or stored procedure to the merge publication.
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
This problem only occurs when you add a schema only merge article such as a view or stored procedure. This behavior does not occur when you add a table merge article.
Steps to Reproduce Behavior