Skip to content

Latest commit

 

History

History
66 lines (47 loc) · 2.52 KB

sp-helppeerresponses-transact-sql.md

File metadata and controls

66 lines (47 loc) · 2.52 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_helppeerresponses (Transact-SQL)
sp_helppeerresponses returns all responses to a specific status request received from a participant in a peer-to-peer replication topology.
markingmyname
maghan
randolphwest
05/15/2024
sql
replication
reference
sp_helppeerresponses_TSQL
sp_helppeerresponses
sp_helppeerresponses
TSQL

sp_helppeerresponses (Transact-SQL)

[!INCLUDE SQL Server]

Returns all responses to a specific status request received from a participant in a peer-to-peer replication topology, where the request was initiated by executing sp_requestpeerresponse at any published database in the topology. This stored procedure is executed on the publication database at a Publisher participating in a peer-to-peer replication topology. For more information, see Peer-to-Peer - Transactional Replication.

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

Syntax

sp_helppeerresponses [ @request_id = ] request_id
[ ; ]

Arguments

[ @request_id = ] request_id

The ID of a specific status request. @request_id is int, with no default.

Result set

Column name Data type Description
request_id int ID of the status request.
peer sysname The name of the peer that generated the response.
peer_db sysname The database name at the peer that generated the response.
received_date datetime Date and time that the requestor received the response from the peer that sent it.

Return code values

0 (success) or 1 (failure).

Remarks

sp_helppeerresponses is used in peer-to-peer transactional replication.

sp_helppeerresponses procedure is used when restoring a database published in a peer-to-peer topology.

Permissions

Only members of the sysadmin fixed server role or the db_owner fixed database role can execute sp_helppeerresponses.

Related content