Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
sp_helpmergedeleteconflictrows (Transact-SQL)
Collapse the table of content
Expand the table of content

sp_helpmergedeleteconflictrows (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

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.

Topic link icon Transact-SQL Syntax Conventions

sp_helpmergedeleteconflictrows [ [ @publication = ] 'publication']
    [ , [ @source_object = ] 'source_object']
    [ , [ @publisher = ] 'publisher'
    [ , [ @publisher_db = ] 'publsher_db'

[ @publication=] 'publication'

Is 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=] 'source_object'

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

[ @publisher=] 'publisher'

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

[ @publisher_db=] 'publisher_db'

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

Column name

Data type




Source object for the delete conflict.



Row identifier for the delete conflict.



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 could not be applied at the Publisher.

6 = DownloadInsertFailed: Insert from Publisher could not be applied at the Subscriber.

7 = UploadDeleteFailed: Delete at Subscriber could not be uploaded to the Publisher.

8 = DownloadDeleteFailed: Delete at Publisher could not be downloaded to the Subscriber.

9 = UploadUpdateFailed: Update at Subscriber could not be applied at the Publisher.

10 = DownloadUpdateFailed: Update at Publisher could not be applied to the Subscriber.



Error code that can be context-sensitive.



Error description that can be context-sensitive.



Origin of the conflict.



Publication identifier.



Time the conflict information was added.

0 (success) or 1 (failure)

sp_helpmergedeleteconflictrows is used in merge replication.

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

Community Additions

© 2015 Microsoft