Ade*_*ata 6 replication sql-server-2008-r2 merge-replication
我们设置了 SQL Server 2008 R2 合并复制。
我们有 20 多个推送订阅。
在同步过程中,我偶尔会收到以下错误消息:
Error messages: The merge process could not set the status of the subscription correctly.
(Source: MSSQL_REPL, Error number: MSSQL_REPL-2147200963)
Could not find stored procedure 'dbo.sp_MScheckIsPubOfSub'.
(Source: MSSQLServer, Error number: 2812)
Run Code Online (Sandbox Code Playgroud)
我找到了上述 SP 的代码并针对订户数据库运行它,一切正常。
我的问题是:为什么这个存储过程会时不时地被删除?我该如何解决这个问题?
请在 sysmergesubscriptions 中检查已删除订阅的孤立行并将其删除。例如,出现故障的订阅者可能在 sysmergesubscriptions 中具有重复的条目,其中一个条目是先前删除的订阅中的孤立条目。
这就是我过去的客户出现此错误的原因和解决方案,ymmv。我希望这有帮助。