Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.86 KB

sp-replication-agent-checkup-transact-sql.md

File metadata and controls

54 lines (38 loc) · 1.86 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_replication_agent_checkup (Transact-SQL)
Checks each distribution database for running replication agents with no logged history in the specified heartbeat interval.
MashaMSFT
mathoma
randolphwest
08/22/2024
sql
replication
reference
sp_replication_agent_checkup_TSQL
sp_replication_agent_checkup
sp_replication_agent_checkup
TSQL

sp_replication_agent_checkup (Transact-SQL)

[!INCLUDE SQL Server SQL MI]

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

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

sp_replication_agent_checkup [ [ @heartbeat_interval = ] heartbeat_interval ]
[ ; ]

Arguments

[ @heartbeat_interval = ] heartbeat_interval

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.

Return code values

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

Remarks

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

Permissions

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

Related content