Events
31 Mar, 23 - 02 Apr, 23
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
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.
Transact-SQL syntax conventions
sp_dropmergepartition
[ @publication = ] N'publication'
, [ @suser_sname = ] N'suser_sname'
, [ @host_name = ] N'host_name'
[ ; ]
The name of the publication. @publication is sysname, with no default.
The value of the SUSER_SNAME function at the Subscriber used to define the partition. @suser_sname is sysname, with no default.
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
.
Events
31 Mar, 23 - 02 Apr, 23
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today