码迷,mamicode.com
首页 > 数据库 > 详细

查看msrepl_commands 中的SQL 语句

时间:2016-07-09 16:21:32      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:

在Transactional Replication中,使用sys.sp_browsereplcmds 查看 msrepl_commands 中的SQL语句

sp_browsereplcmds Returns a result set in a readable version of the replicated commands stored in the distribution database, and is used as a diagnostic tool. This stored procedure is executed at the Distributor on the distribution database.

sp_browsereplcmds [ [ @xact_seqno_start = ] xact_seqno_start ]
    [ , [ @xact_seqno_end = ] xact_seqno_end ] 
    [ , [ @originator_id = ] originator_id ]
    [ , [ @publisher_database_id = ] publisher_database_id ]
    [ , [ @article_id = ] article_id ]
    [ , [ @command_id= ] command_id ]
    [ , [ @agent_id = ] agent_id ]
    [ , [ @compatibility_level = ] compatibility_level ]

 

 

 

参考文档;

sp_browsereplcmds (Transact-SQL)

查看msrepl_commands 中的SQL 语句

标签:

原文地址:http://www.cnblogs.com/ljhdo/p/5655887.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!