SUBJECT : Cannot drop article from publication because its snapshot is run
error
Needed urgently. I am getting this error all the time when i want to drop
article from publication . I am using merge replication .
ERROR:
Server: Msg 21338, Level 16, State 1, Procedure sp_dropmergearticle, Line 88
Cannot drop article 'Promotion' from publication 'm10pocketpc' because its
snapshot has been run and this publication could have active subscriptions.
i am using this command to drop article:
exec sp_dropmergearticle @publication = N'm10pocketpc', @article =
N'Promotion'
GO
--
yours truly,
Pramod Renikindi,
creativesoft,
australia
[quoted text, click to view] "Gabriel D via SQLMonster.com" wrote:
>
> I also use the script to drop the article(s) I don't want.
>
> What I do is:
>
> 1) Right click on the publication that you want to remove the table from.
>
> 2) Generate DELETE script.
>
> 3) Paste into Query Analyzer
>
> 4) Find and run the sp_dropsubscription and sp_droparticle commands for the
> table you want to run.
>
> 5) All done.
>
> This technique, in conjunction with the CREATE script can be used if the
> schema of a replicated table needs to be changed.
>
> You generate & SAVE both the DELETE & CREATE scripts. Remove the article from
> replication, change the table, then add it back in with the relevant portion
> of the create script.
>
>
> Russell wrote:
> >I want to drop a table from some of my transactional publications. Can I just
> >drop the article on the publisher and then be able to delete the table at the
> >subscriber?
> >
> >Or do I have to drop the article and re-snapshot the subscriber?