drop publication

Drops a publication and all of its articles, and optionally drops the replication definitions for the articles.

Syntax

drop publication pub_name
with primary at data_server.database
[drop_repdef]

Parameters

Examples

Usage

  • Use drop publication to remove a publication. Execute drop publication at the Replication Server that manages the database where the primary data is stored.

  • You can drop a publication if there are no subscriptions for the publication. Drop subscriptions first, as necessary.

  • When you drop a publication, its articles are also dropped. Optionally, you can also drop all of the replication definitions for the publication’s articles, if they are not part of any other article and have no subscriptions.

  • A dropped publication is removed from a replicate site when define/create subscription or check publication is executed there for the publication.

Permissions

drop publication requires “create object” permission.

Related reference
check publication
create publication
drop article
drop function replication definition
drop replication definition
drop subscription