sp_showrowreplicainfo (Transact-SQL)

 

Applies To: SQL Server

Displays information about a row in a table that is being used as an article in merge replication. This stored procedure is executed at the Publisher on the publication database.

Topic link icon Transact-SQL Syntax Conventions

  
sp_showrowreplicainfo [ [ @ownername = ] 'ownername' ]  
    [ , [ @tablename =] 'tablename' ]   
        , [ @rowguid =] rowguid   
    [ , [ @show = ] 'show' ]   

[ @ownername= ] 'ownername'
Is the name of the table owner. ownername is sysname, with a default of NULL. This parameter is useful to differentiate tables if a database contains multiple tables with the same name, but each table has a different owner.

[ @tablename =] 'tablename'
Is the name of the table that contains the row for which the information is returned. tablename is sysname, with a default of NULL.

[ @rowguid =] rowguid
Is the unique identifier of the row. rowguid is uniqueidentifier, with no default.

[ @show= ] 'show'
Determines the amount of information to return in the result set. show is nvarchar(20) with a default of BOTH. If row, only row version information is returned. If columns, only column version information is returned. If both, both row and column information is returned.

Column nameData typeDescription
server_namesysnameName of the server hosting the database that made the row version entry.
db_namesysnameName of the database that made this entry.
db_nicknamebinary(6)Nickname of the database that made this entry.
versionintVersion of the entry.
current_statenvarchar(9)Returns information on the current state of the row.

 y - Row data represents the current state of the row.

 n - Row data does not represent the current state of the row.

 <n/a> - Not applicable.

 <unknown> - Current state cannot be determined.
rowversion_tablenchar(17)Indicates whether the row versions are stored in the MSmerge_contents table or the MSmerge_tombstone table.
commentnvarchar(255)Additional information about this row version entry. Usually, this field is empty.
Column nameData typeDescription
server_namesysnameName of the server hosting the database that made the column version entry.
db_namesysnameName of the database that made this entry.
db_nicknamebinary(6)Nickname of the database that made this entry.
versionintVersion of the entry.
colnamesysnameName of the article column that the column version entry represents.
commentnvarchar(255)Additional information about this column version entry. Usually, this field is empty.

If the value both is chosen for show, then both the row and column result sets is returned.

sp_showrowreplicainfo is used in merge replication.

sp_showrowreplicainfo can only be executed by members of the db_owner fixed database role on the publication database or by members of the publication access list (PAL) on the publication database.

Detect and Resolve Merge Replication Conflicts
System Stored Procedures (Transact-SQL)

Community Additions

ADD
Show: