温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

查看Validate Subscription 的结果

发布时间:2020-07-24 15:48:32 来源:网络 阅读:355 作者:zsdnr 栏目:网络安全

Sql Server Replication Monitor 提供一个feature,能够verify Replication的 Publication 和 Subscription 的数据同步status。

1,在Replication Monitor的Left pane中点击Repulication,弹出快捷菜单 "Validate Subscriptions...",开始Validate one subscription。

查看Validate Subscription 的结果

2,在Replication Monitor的Right pane中,选择一个Subscription,点开 View Details

查看Validate Subscription 的结果

3,查看 Distributor to Subscriber History tab的 Action Messages

查看Validate Subscription 的结果

如果显示的是 “Table 'xxx' passed rowcount(number) and checksum validation”,表示Validate 的result是success,Publication 和subscription 的数据是同步的。

如果显示的是 ”Table 'xxx' might be out of synchronization. Rowcounts(actual:number1, expected number2).Checksum values(actual:number3,expected number4)“ ,表示Validate的result 是 failure,Publication 和subscription 的数据是不同步的。

 

Here is the query that is being executed against each table in the database if you choose to compare actual count and the checksum:

SELECT count_big(*), 
    sum(convert(numeric, binary_checksum(*) ) ) 
FROM <tablename>  WITH (TABLOCK HOLDLOCK)

 


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI