Partilhar via


sp_getmergedeletetype (Transact-SQL)

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 iconTransact-SQL Syntax Conventions

Syntax


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

Arguments

  • [ @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

Remarks

sp_getmergedeletetype is used in merge replication.

Permissions

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

See Also

Reference

System Stored Procedures (Transact-SQL)

Help and Information

Getting SQL Server 2005 Assistance