all groups > sql server replication > october 2005 >
You're in the

sql server replication

group:

how to completely remove replication?



how to completely remove replication? Sylvia
10/31/2005 4:06:54 PM
sql server replication: What's the easiest scripted way to completely remove replication?

I've seen this article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;324401

....but what I'd really like to find is a script that goes on a search
and destroy mission for replication related stuff (tables, data in
tables, jobs) and gets rid of it, without having to manually go through
all this.

The goal is to set up a test server with replication (it will be
publisher, distributor, and subscriber), and be able to rerun
replication setup from scripts - the first step being to remove
replication completely.

thanks for any tips,
Sylvia
Re: how to completely remove replication? Hilary Cotter
10/31/2005 11:29:02 PM
have a look at this

http://groups.google.com/group/microsoft.public.sqlserver.replication/msg/71db1f922401f617?dmode=source

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
[quoted text, click to view]

Re: how to completely remove replication? Hilary Cotter
11/14/2005 12:00:00 AM
It was meant for a subscriber, but it can be used for a publisher.

The create statements are there because if you restore a published db it may
be restored as published and then when you go to remove it, it will complain
about these missing objects.

[quoted text, click to view]

Re: how to completely remove replication? Sylvia
11/14/2005 11:57:42 AM

[quoted text, click to view]

Thanks for the reference, Hilary, this looks very useful. I'm assuming
it's to be run in the Publication database?

One question - I'm confused as to why there's a lot of table create
statements at the end, instead of just deleting from those tables?

thanks,
Sylvia
AddThis Social Bookmark Button