Any suggestions? Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

sp_replication_agent_checkup (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).

Checks each distribution database for replication agents that are running but have not logged history within the specified heartbeat interval. This stored procedure is executed at the Distributor on any database.

Topic link icon Transact-SQL Syntax Conventions

sp_replication_agent_checkup [ [ @heartbeat_interval = ] heartbeat_interval ]

[ @heartbeat_interval = ] 'heartbeat_interval'

Is the maximum number of minutes that an agent can go without logging a progress message. heartbeat_interval is int, with a default of 10 minutes.

sp_replication_agent_checkup raises error 14151 for each agent it detects as suspect. It also logs a failure history message about the agents.

sp_replication_agent_checkup is used in snapshot replication, transactional replication, and merge replication.

Only members of the sysadmin fixed server role can execute sp_replication_agent_checkup.

Community Additions

© 2016 Microsoft