Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

When attempting to delete a publication, I am getting the error cannot drop publication 'XX' cannot drop article 'XX'.

The subscription has been deleted at the subscriber. Any ideas on how I can force the deletion of the publication so that it can be recreated? I can execute

exec sp_dropsubscription @publication = N'XX', @subscriber = N'all'

but this has no apparent effect.

share|improve this question
    
that first thing that comes to my mind is it might be a permissions issue. –  DForck42 Feb 4 '13 at 15:50
add comment

1 Answer

up vote 1 down vote accepted

sp_removedbreplication Database name works for me but sometimes when replication is really screwed up I have to remove all replication by using sp_removesrvreplication

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.