Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
sp_replcounters (Transact-SQL)
Collapse the table of content
Expand the table of content

sp_replcounters (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Returns replication statistics about latency, throughput, and transaction count for each published database. This stored procedure is executed at the Publisher on any database.

Topic link icon Transact-SQL Syntax Conventions


sp_replcounters
        

Column name

Data type

Description

Database

sysname

Name of the database.

Replicated transactions

int

Number of transactions in the log awaiting delivery to the distribution database.

Replication rate trans/sec

float

Average number of transactions per second delivered to the distribution database.

Replication latency

float

Average time, in seconds, that transactions were in the log before being distributed.

Replbeginlsn

binary(10)

Log sequence number (LSN) of the current truncation point in the log.

Replendlsn

binary(10)

LSN of the next commit record awaiting delivery to the distribution database.

sp_replcounters is used in transactional replication.

Requires membership in the db_owner fixed database role or sysadmin fixed server role.

Community Additions

ADD
Show:
© 2015 Microsoft