How do I check SQL replication status via T-SQL?

后端 未结 3 1002
终归单人心
终归单人心 2021-02-05 10:09

I want to be able to check the status of a publication and subscription in SQL Server 2008 T-SQL. I want to be able to determine if its okay, when was the last successful, sync

3条回答
  •  甜味超标
    2021-02-05 10:54

    Old post but adding for others - The following stored procedure will give you what you need:

    • sp_replmonitorhelppublication (https://msdn.microsoft.com/en-us/library/ms186304.aspx)

    It allows you to view the status plus other information for all replication publications for a distributor (run it on the distribution database)

提交回复
热议问题