Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 5308

複寫監控 Monitor Replication

$
0
0

複寫監控 Monitor Replication


Measure Latency and Validate Connections for Transactional Replication
使用Tracer Token監控複寫延遲

保留延遲紀錄作法請參考我這篇

 

Programmatically Monitor Replication--Programmatically Monitor Replication

USE [distribution]
GO
sp_replmonitorhelppublisher
GO

sp_replmonitorhelppublisher (Transact-SQL)

USE [distribution]
GO
sp_replmonitorhelppublication @publisher = N'SQLDEV1'
GO

sp_replmonitorhelppublication (Transact-SQL)

USE [distribution]
GO
sp_replmonitorhelpsubscription @publisher = N'SQLDEV1', @publication_type = 0
GO

sp_replmonitorhelpsubscription (Transact-SQL)

USE [distribution]
 GO
 sp_replmonitorsubscriptionpendingcmds
 @publisher = N'SQLDEV1',
 @publisher_db = 'AdventureWorks2008R2',
 @publication = 'Orders',
 @subscriber = 'SQLDEVSUB1',
 @subscriber_db = 'AdventureWorks2008R2',
 @subscription_type = 0
 GO

Result Sets
Column name Data type Description
pendingcmdcount int The number of commands that are pending for the subscription.
estimatedprocesstime int Estimate of the number of seconds required to deliver all of the pending commands to the Subscriber.

sp_replmonitorsubscriptionpendingcmds (Transact-SQL)

 


Viewing all articles
Browse latest Browse all 5308

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>