| title | sp_dropmergepartition (Transact-SQL) | ||
|---|---|---|---|
| description | Removes a partition for a parameterized row filter from a publication. | ||
| author | markingmyname | ||
| ms.author | maghan | ||
| ms.reviewer | randolphwest | ||
| ms.date | 06/23/2025 | ||
| ms.service | sql | ||
| ms.subservice | replication | ||
| ms.topic | reference | ||
| ms.custom |
|
||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
||
| monikerRange | >=aps-pdw-2016 || =azuresqldb-current || =azure-sqldw-latest || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric-sqldb |
[!INCLUDE sql-asdb-asdbmi-asa-pdw-fabricsqldb]
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.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: 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.