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

sp_getmergedeletetype (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 the type of merge delete. This stored procedure is executed at the Publisher on the publication database or at the Subscriber on the subscription database.

Topic link icon Transact-SQL Syntax Conventions


sp_getmergedeletetype [ @source_object = ] 'source_object', [ @rowguid =] 'rowguid', [ @delete_type=] delete_type OUTPUT

[ @source_object =] 'source_object'

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

[ @rowguid=] 'rowguid'

Is the row identifier for the delete type. rowguid is uniqueidentifier, with no default.

[ @delete_type=] delete_type OUTPUT

Is the code indicating the type of delete. delete_type is int, with no default. delete_type is also an OUTPUT parameter, and can be one of these values.

Value

Description

1

User delete

5

Partial delete

6

System delete

sp_getmergedeletetype is used in merge replication.

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

Community Additions

ADD
Show:
© 2015 Microsoft