Drops a publication and its associated articles.
sp_droppublication publication
where
This stored procedure recursively drops all articles associated with a publication and then drops the publication itself. A publication cannot be removed if it has one or more subscriptions to it. The associated sync task will also be dropped. Only the system administrator or the database owner can drop a publication.
This example drops the mypub3 publication.
sp_droppublication mypub3
Execute permission defaults to the system administrator and the database owner.
sysarticles, syspublications, syssubscriptions
sp_addarticle | sp_droparticle |
sp_addpublication | sp_enumfullsubscribers |
sp_articlecolumn | sp_helparticle |
sp_changearticle | sp_helparticlecolumns |
sp_changepublication | sp_helppublication |