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 Managed Instance
Removes publishing metadata belonging to a specific publication at the Distributor. This stored procedure is executed at the Distributor on the distribution database.
Transact-SQL syntax conventions
sp_removedistpublisherdbreplication
[ @publisher = ] N'publisher'
, [ @publisher_db = ] N'publisher_db'
[ ; ]
The name of the Publisher server. @publisher is sysname, with no default.
The name of the publication database. @publisher_db is sysname, with no default.
0
(success) or 1
(failure).
sp_removedistpublisherdbreplication
is used by transactional and snapshot replication.
sp_removedistpublisherdbreplication
is used when a published database must be recreated without also dropping the distribution database. The following metadata is removed:
Only members of the sysadmin fixed server role at the Distributor or members of the db_owner fixed database role in the distribution database can execute sp_removedistpublisherdbreplication
.
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