Could not drop publication. A subscription exists to it.

Details
Product: SQL Server
Event ID: 14005
Source: MSSQLServer
Version: 10.0
Component: SQL Server Database Engine
Message: Could not drop publication. A subscription exists to it.
   
Explanation

You have tried to drop a publication which has one or more associated subscriptions. A publication can only be dropped if there are no associated subscriptions.

   
User Action

Drop the subscriptions before dropping the publication. If you use SQL Server Management Studio to drop the publication, it will give you the option to automatically drop all associated subscriptions before dropping the publication. If you use stored procedures, you must explicitly drop the subscriptions first. For more information, see How to: Delete a Push Subscription (Replication Transact-SQL Programming) and How to: Delete a Pull Subscription (Replication Transact-SQL Programming).

If no subscriptions appear to exist for the publication or if you see this error when you create a publication, you might have a previous subscription that was not completely cleaned up when it was removed. Execute sp_removedbreplication (Transact-SQL) on the database to remove all objects and settings related to replication.

   
   
Version: 9.0
Component: SQL Server Database Engine
Message: Could not drop publication. A subscription exists to it.
   
Explanation

You have tried to drop a publication which has one or more associated subscriptions. A publication can only be dropped if there are no associated subscriptions.

   
User Action

Drop the subscriptions before dropping the publication. If you use SQL Server Management Studio to drop the publication, it will give you the option to automatically drop all associated subscriptions before dropping the publication. If you use stored procedures, you must explicitly drop the subscriptions first. For more information, see How to: Delete a Push Subscription (Replication Transact-SQL Programming) and How to: Delete a Pull Subscription (Replication Transact-SQL Programming).

If no subscriptions appear to exist for the publication or if you see this error when you create a publication, you might have a previous subscription that was not completely cleaned up when it was removed. Execute sp_removedbreplication (Transact-SQL) on the database to remove all objects and settings related to replication.

   
   
Version: 8.0
Component: SQL Engine
Message: Could not drop publication. A subscription exists to it.
   
Explanation
You have tried to drop a publication that has one or more associated subscriptions. A publication can only be dropped if there are no associated subscriptions.
   
User Action
Drop the subscriptions before dropping the publication. If you use SQL Enterprise Manager to drop the publication, it will give you the option to automatically drop all associated subscriptions before dropping the publication.

If no subscriptions appear to exist for the publication or if you see this error when you create a publication, you may have a previous subscription that was not completely cleaned up after it was removed. The exact steps to remove the leftover replication will depend on your situation. For more details on removing replication manually, see the Microsoft Knowledge Base article, 324401.

Related:

Leave a Reply