订阅者合并复制错误

Merge replication Error at the subscribers

我正在 SQL SERVER 2012 上进行合并复制。我有一台中央服务器,在同一台服务器上配置了发布和分发 machine.I 还有另外三台机器 SQL SERVER 2012 作为订阅者。复制工作正常,但是我 运行 在所有订阅者上出现以下错误

架构脚本

if exists (select * from syscolumns where name = N'TransporterID' and id = object_id(N'[dbo].[Transporter]')) if object_id(N'[dbo].[Transporter]') is not null exec('ALTER TABLE [dbo].[Transporter] DROP COLUMN TransporterID')' could not be propagated to the subscriber.

谢谢

这似乎是架构更改失败。您可以重新初始化订阅或跳过架构更改。如果重新初始化不是一个选项,那么您可以像这样跳过架构更改。

您可以在 table sysmergeschemachange. Another way to locate the schema change is to execute sp_enumeratependingschemachanges:

中找到要跳过的架构更改
EXEC sp_enumeratependingschemachanges 
    @publication = 'MyPublicationName'

从结果集中获取模式版本,然后通过执行 sp_markpendingschemachange 跳过模式更改。例如,如果 schemaversion 是 22:

EXEC sp_markpendingschemachange 
    @publication = 'MyPublicationName',
    @schemaversion = 22
    @status = 'skipped'