Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Making Idempotent calls to sp_droparticle

$
0
0

I'm working on a migration Script and trying to make the exec sp_droparticle @Publication=...

calls Idempotent (capable of running over again without error or doing harm)

Typically we'd do something like this:

IF EXISTS (SELECT Object ) 

BEGIN

exec sp_droparticle @Publication= 

END

Q: Is there a nice way to check for Article existence?  Tried Scripting from Replication wizard but no luck.  Tried Searching internet but no luck.

Thanks


...Ray



Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>