如何检查复制快照代理状态? [英] How to check replication snapshot agent status?
本文介绍了如何检查复制快照代理状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用此语句启动代理后,我想检查代理的状态
I'd like to check the status of the agent after I start it using this statement
EXEC sp_startpublication_snapshot @publication
我要执行需要已开始工作的下一步.
As I want to do a next step that needs the job to be already started.
推荐答案
经过研究,我找到了解决方法
After some research I got a work around way
SELECT snapshot_ready FROM sysmergepublications
如果尚未准备好,此查询将返回0,如果尚未启动,则返回1
This query returns 0 if not ready and 1 if started
感谢您的贡献:)
这篇关于如何检查复制快照代理状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文