Sql Server delete local Publish and Subscribe

 

  • - Subscribe to delete the current subscription database server. (Snapshot replication and transactional replication deletion)

exec dbo.sp_droppullsubscription  'all', 'all', 'all'

  • - during the execution of this publication database stored on the publisher's (delete subscription and its associated merge publication of the Merge Agent)

EXEC sp_dropmergesubscription   'all', 'all', 'all'

  • - Remove all replication publishing objects on the server / subscriber database delete local publication or local subscription

EXEC sp_removedbreplication 'Payment.Platform' // database name

 

Guess you like

Origin www.cnblogs.com/AlexLeeLi/p/12018590.html