Skip to content

Latest commit

 

History

History
88 lines (62 loc) · 3.99 KB

sp-helpmergedeleteconflictrows-transact-sql.md

File metadata and controls

88 lines (62 loc) · 3.99 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_helpmergedeleteconflictrows (Transact-SQL)
Returns information on data rows that lost delete conflicts.
markingmyname
maghan
randolphwest
11/23/2023
sql
replication
reference
sp_helpmergedeleteconflictrows
sp_helpmergedeleteconflictrows_TSQL
sp_helpmergedeleteconflictrows
TSQL

sp_helpmergedeleteconflictrows (Transact-SQL)

[!INCLUDE SQL Server]

Returns information on data rows that lost delete conflicts. This stored procedure is executed at the Publisher on the publication database or at the Subscriber on the subscription database when decentralized conflict logging is used.

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

Syntax

sp_helpmergedeleteconflictrows
    [ [ @publication = ] N'publication' ]
    [ , [ @source_object = ] N'source_object' ]
    [ , [ @publisher = ] N'publisher' ]
    [ , [ @publisher_db = ] N'publisher_db' ]
    [ , [ @logical_record_conflicts = ] logical_record_conflicts ]
[ ; ]

Arguments

[ @publication = ] N'publication'

The name of the publication. @publication is sysname, with a default of %. If the publication is specified, all conflicts qualified by the publication are returned.

[ @source_object = ] N'source_object'

The name of the source object. @source_object is nvarchar(386), with a default of NULL.

[ @publisher = ] N'publisher'

The name of the Publisher. @publisher is sysname, with a default of NULL.

[ @publisher_db = ] N'publisher_db'

The name of the publisher database. @publisher_db is sysname, with a default of NULL.

[ @logical_record_conflicts = ] logical_record_conflicts

@logical_record_conflicts is int, with a default of 0.

Result set

Column name Data type Description
source_object nvarchar(386) Source object for the delete conflict.
rowguid uniqueidentifier Row identifier for the delete conflict.
conflict_type int Code indicating type of conflict:

1 = UpdateConflict: Conflict is detected at the row level.

2 = ColumnUpdateConflict: Conflict detected at the column level.

3 = UpdateDeleteWinsConflict: Delete wins the conflict.

4 = UpdateWinsDeleteConflict: The deleted rowguid that loses the conflict is recorded in this table.

5 = UploadInsertFailed: Insert from Subscriber couldn't be applied at the Publisher.

6 = DownloadInsertFailed: Insert from Publisher couldn't be applied at the Subscriber.

7 = UploadDeleteFailed: Delete at Subscriber couldn't be uploaded to the Publisher.

8 = DownloadDeleteFailed: Delete at Publisher couldn't be downloaded to the Subscriber.

9 = UploadUpdateFailed: Update at Subscriber couldn't be applied at the Publisher.

10 = DownloadUpdateFailed: Update at Publisher couldn't be applied to the Subscriber.
reason_code Int Error code that can be context-sensitive.
reason_text varchar(720) Error description that can be context-sensitive.
origin_datasource varchar(255) Origin of the conflict.
pubid uniqueidentifier Publication identifier.
MSrepl_create_time datetime Time the conflict information was added.

Return code values

0 (success) or 1 (failure).

Remarks

sp_helpmergedeleteconflictrows is used in merge replication.

Permissions

Only members of the sysadmin fixed server role and the db_owner fixed database role can execute sp_helpmergedeleteconflictrows.

Related content