在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)
时间: 2024-10-18 22:21:15