Events
Sep 15, 6 AM - Sep 17, 3 PM
The best SQL community-led learning event. Sept 2025. Save €200 with code FABLEARN.
Get registeredThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
SQL Server
Azure SQL Managed Instance
Returns replication statistics about latency, throughput, and transaction count for each published database. This stored procedure is executed at the Publisher on any database.
Transact-SQL syntax conventions
sp_replcounters
[ ; ]
None.
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. |
Replnextlsn |
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.
Events
Sep 15, 6 AM - Sep 17, 3 PM
The best SQL community-led learning event. Sept 2025. Save €200 with code FABLEARN.
Get registeredPlease sign in to use this experience.
Sign in