开发者

Replication problem - Conflict Resolving

开发者 https://www.devze.com 2023-01-26 16:40 出处:网络
(sqlserver 2008) We have various subscribers and one publishers. We have a table which keeps track of inventory. Now, this is what ha开发者_JAVA技巧ppens - a user makes some changes on the subscriber

(sqlserver 2008)

We have various subscribers and one publishers. We have a table which keeps track of inventory. Now, this is what ha开发者_JAVA技巧ppens - a user makes some changes on the subscriber to the inventory table(column BalanceQty is modified), and another user makes changes on the same table and column in Publisher. So, when synchronization happens, a conflict is raised. But, the publisher wins and the wrong quantity is reflected in the database. How should we tackle this scenario? The synchronization should take both values in consideration.


By default, the most recent update to the column value will win. Depending on your business rules, you could use one of the provided conflict resolvers in SQL Server (such as the "Subscriber Always Wins" resolver).

The provided resolvers are described here: http://msdn.microsoft.com/en-us/library/ms152573.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号