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

sp_dropmergepartition (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).

Removes a partition for a parameterized row filter from a publication. This stored procedure is executed at the Publisher on the publication database. This stored procedure also removes the corresponding snapshot job and snapshot files for the partition.

Topic link icon Transact-SQL Syntax Conventions

sp_dropmergepartition [ @publication = ] 'publication' 
        , [ @suser_sname = ] 'suser_sname' 
        , [ @host_name = ] 'host_name'

[ @publication] = 'publication'

Is the name of the publication. publication is sysname, with no default.

[ @suser_sname= ] 'suser_sname'

Is the value of the SUSER_SNAME function at the Subscriber used to define the partition. suser_sname is sysname, with no default.

[ @host_name = ] 'host_name'

Is the value of the HOST_NAME function at the Subscriber used to define the partition. host_name is sysname, with no default.

0 (success) or 1 (failure)

sp_dropmergepartition is used in merge replication.

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

Community Additions

ADD
Show:
© 2015 Microsoft