| title | sp_help_peerconflictdetection (Transact-SQL) | ||
|---|---|---|---|
| description | Returns information about the conflict detection settings for a publication involved in a peer-to-peer transactional replication. | ||
| author | markingmyname | ||
| ms.author | maghan | ||
| ms.reviewer | randolphwest | ||
| ms.date | 06/23/2025 | ||
| ms.service | sql | ||
| ms.subservice | replication | ||
| ms.topic | reference | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!INCLUDE SQL Server]
Returns information about the conflict detection settings for a publication that is involved in a peer-to-peer transactional replication topology.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
sp_help_peerconflictdetection
[ @publication = ] N'publication'
[ , [ @timeout = ] timeout ]
[ ; ]
The name of the publication for which to return information. @publication is sysname, with no default.
Specifies the amount of time, in seconds, after which the procedure times out while waiting for response from every node in the topology. @timeout is int, with a default of 60. If there's a read-only Subscriber in the topology, specifying a time-out value isn't valid. Read-only Subscribers never respond to a call from this procedure.
sp_help_peerconflictdetection returns three result sets. These results are documented in the following articles:
- MSpeer_conflictdetectionconfigrequest (Transact-SQL)
- MSpeer_conflictdetectionconfigresponse (Transact-SQL)
- MSpeer_originatorid_history (Transact-SQL)
0 (success) or 1 (failure).
sp_help_peerconflictdetection is used in peer-to-peer transactional replication.
Requires membership in the sysadmin fixed server role, or db_owner fixed database role.