sp_browsereplcmds (Transact-SQL)
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 ]
|
Column name |
Data type |
Description |
|---|---|---|
|
xact_seqno |
varbinary(16) |
Sequence number of the command. |
|
originator_srvname |
sysname |
Server where the transaction originated. |
|
originator_db |
sysname |
Database where the transaction originated. |
|
article_id |
int |
ID of the article. |
|
type |
int |
Type of command. |
|
partial_command |
bit |
Indicates whether this is a partial command. |
|
hashkey |
int |
Internal use only. |
|
originator_publication_id |
int |
ID of the publication where the transaction originated. |
|
originator_db_version |
int |
Version of the database where the transaction originated. |
|
originator_lsn |
varbinary(16) |
Identifies the log sequence number (LSN) for the command in the originating publication. Used in peer-to-peer transactional replication. |
|
command |
nvarchar(1024) |
Transact-SQL command. |
|
command_id |
int |
ID of the command in MSrepl_commands. |
Long commands can be split across several rows in the result sets.
