如何在合并复制中跳过架构更改?
我向表中添加了一个非空列,但订阅者首先必须创建具有空数据的列,因此无法复制。我已经将源中的此列更改为空,但代理想要先同步第一个更改。
建议?
请您参考如下方法:
您可以在表 sysmergeschemachange 中找到要跳过的架构更改.定位架构更改的另一种方法是执行 sp_enumeratependingschemachanges :
EXEC sp_enumeratependingschemachanges
@publication = 'MyPublicationName'
从结果集中获取模式版本,然后通过执行 sp_markpendingschemachange 跳过模式更改.例如,如果 schemaversion 是 22:
EXEC sp_markpendingschemachange
@publication = 'MyPublicationName',
@schemaversion = 22
@status = 'skipped'