Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 2.61 KB

sp-requestpeertopologyinfo-transact-sql.md

File metadata and controls

61 lines (43 loc) · 2.61 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_requestpeertopologyinfo (Transact-SQL)
Populates the MSpeer_topologyresponse system table with information about a peer-to-peer transactional replication topology.
markingmyname
maghan
randolphwest
08/22/2024
sql
replication
reference
sp_requestpeertopologyinfo
sp_requestpeertopologyinfo_TSQL
sp_requestpeertopologyinfo
TSQL

sp_requestpeertopologyinfo (Transact-SQL)

[!INCLUDE SQL Server]

Populates the MSpeer_topologyresponse system table with information about a peer-to-peer transactional replication topology. Execute sp_gettopologyinfo to obtain information from the table in XML format.

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

Syntax

sp_requestpeertopologyinfo
    [ @publication = ] N'publication'
    [ , [ @request_id = ] request_id OUTPUT ]
[ ; ]

Arguments

[ @publication = ] N'publication'

The name of the publication for which to perform a topology-wide status request. @publication is sysname, with no default.

[ @request_id = ] request_id OUTPUT

The ID number that is assigned to the topology status request. @request_id is an OUTPUT parameter of type int. This ID can be used by sp_gettopologyinfo.

Return code values

0 (success) or 1 (failure).

Remarks

sp_requestpeertopologyinfo is used in peer-to-peer transactional replication. Execute sp_requestpeertopologyinfo before executing sp_gettopologyinfo. These procedures are used by the Configure Peer-to-Peer Topology Wizard, but they can also be used directly if you require topology information in an XML format. If you prefer tabular results, query the MSpeer_topologyresponse system table.

Permissions

Requires membership in the sysadmin fixed server role, db_owner fixed database role, or execute permission directly on this stored procedure.

Related content