SQL Server 两层复制 - 事务/合并 - 行未下降
我有一个 SQL 2000 实例,该实例的数据库带有事务发布 - 仅表。 它是由 SQL 2005 实例订阅的 - 没有问题。
我需要在合并发布中发布此事务订阅中的一些表。 现在,我使用 SQL 2005 实例中的另一个数据库作为合并订阅者。
设置如下所示:
SQL2000 --(Transactional)--> SQL2005-1 --(合并)--> SQL2005-2
SQL2000 发布的初始快照一直到 SLQ2005-2 合并订阅者。
如果我在 SQL2000 端更新或插入一行,它将到达中间 SQL2005-1 数据库。 但是,这些行不会传播到 SQL2005-2 数据库。 如果我在 SQL2005-1 数据库中手动插入或更新一行,则更改确实会发生。
当事务订阅执行插入或更新时,合并发布所依赖的更新或插入触发器似乎没有被调用。
我怎样才能让它发挥作用? 任何帮助将非常感激!
I have a SQL 2000 instance that has database with a transactional publication - tables only. It is subscribed to by a SQL 2005 instance - no problems.
I need to publish some of the tables from this transactional subscription in a merge publication. Right now, I'm using another database in the SQL 2005 instance as the merge subscriber.
The set up looks like this:
SQL2000 --(Transactional)--> SQL2005-1 --(Merge)--> SQL2005-2
The initial snapshot of the SQL2000 publication comes all the way down to the SLQ2005-2 Merge subscriber.
If I update or insert a row on the SQL2000 side, it comes through to the middle SQL2005-1 database. However, these rows do not get propagated through to the SQL2005-2 database. If I manually insert or update a row in the SQL2005-1 database, the change does come through.
It seems as though update or insert triggers that the merge publication works off of are not getting called when the transactional subscription performs the insert or update.
How can I get this to work? Any help would be much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在这里猜测,但是您的 2005-1 到 2005-2 触发器是否被标记为“不用于复制”,因此在 2000 到 2005-1 发生时被跳过? 链接复制不是一个简单的过程,需要修改大量“向导”内容才能使其正常工作。
http://msdn.microsoft.com/en-us/library/ms152529。 ASPX
I am guessing here, but are your 2005-1 to 2005-2 triggers marked as "not for replication" and therefor being skipped with the 2000 to 2005-1 is happening? Chaining replication is not an easy process and a good amount of the 'wizard' stuff needs to be modified to make it work.
http://msdn.microsoft.com/en-us/library/ms152529.aspx