Select the product you need help with
FIX: Merge Replication Agent Fails with Error Message: "Unable to replicate a view or function"Article ID: 299649 - View products that this article applies to. This article was previously published under Q299649
BUG #: 234529 (SHILOH_BUGS)
On This PageSYMPTOMS
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'.
Unable to replicate a view or function because the referenced objects or columns are not present on the Subscriber.
CAUSE
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.
RESOLUTIONTo 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
(http://support.microsoft.com/kb/290211/EN-US/
)
INF: How to Obtain the Latest SQL Server 2000 Service Pack
WORKAROUND
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.
STATUSMicrosoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1. MORE INFORMATION
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
PropertiesArticle ID: 299649 - Last Review: November 5, 2003 - Revision: 3.2
|


Back to the top








