Sql Server Replication Monitor 提供一個(gè)feature,能夠verify Replication的 Publication 和 Subscription 的數(shù)據(jù)同步status。
1,在Replication Monitor的Left pane中點(diǎn)擊Repulication,彈出快捷菜單 "Validate Subscriptions...",開始Validate one subscription。
2,在Replication Monitor的Right pane中,選擇一個(gè)Subscription,點(diǎn)開 View Details
3,查看 Distributor to Subscriber History tab的 Action Messages
如果顯示的是 “Table 'xxx' passed rowcount(number) and checksum validation”,表示Validate 的result是success,Publication 和subscription 的數(shù)據(jù)是同步的。
如果顯示的是 ”Table 'xxx' might be out of synchronization. Rowcounts(actual:number1, expected number2).Checksum values(actual:number3,expected number4)“ ,表示Validate的result 是 failure,Publication 和subscription 的數(shù)據(jù)是不同步的。
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(*) ) ) FROMWITH (TABLOCK HOLDLOCK)
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。