dbTalk Databases Forums  

drop subscriptions

microsoft.public.sqlserver.replication microsoft.public.sqlserver.replication


Discuss drop subscriptions in the microsoft.public.sqlserver.replication forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JG Espinoza
 
Posts: n/a

Default drop subscriptions - 01-12-2005 , 10:03 PM






Hi all,

How can I remove a list of subscriptions from the server?


My server acts as PUBLISHER and SUBSCRIBER at the same time, but both
features has been disabled. So, I can't delete the subscriptions list
because I have no PUBLISHER and SUBSCRIBER now.


I've tryied with differents commands like sp_dropsubscriptions,
sp_dropsubscriber, etc, but nothing works.



Is there any way to drop all this trash?



thanks.



Reply With Quote
  #2  
Old   
Hilary Cotter
 
Posts: n/a

Default Re: drop subscriptions - 01-12-2005 , 10:34 PM






Can you enable the databases for publishing and then remove them?

If there are no live subscriptions you can merely delete the contents of
MSreplication_subscriptions and MSsubscription_agents if you have
transactional replication.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"JG Espinoza" <jasiele (AT) NOSPAMhotmail (DOT) com> wrote

Quote:
Hi all,

How can I remove a list of subscriptions from the server?


My server acts as PUBLISHER and SUBSCRIBER at the same time, but both
features has been disabled. So, I can't delete the subscriptions list
because I have no PUBLISHER and SUBSCRIBER now.


I've tryied with differents commands like sp_dropsubscriptions,
sp_dropsubscriber, etc, but nothing works.



Is there any way to drop all this trash?



thanks.





Reply With Quote
  #3  
Old   
JG Espinoza
 
Posts: n/a

Default Re: drop subscriptions - 01-12-2005 , 10:40 PM



I can enable the database but i can't delete it as well.


How can I delete the content of MSreplication_subscriptions and
MSsubscription_agents?


I have both transactional and merge subscriptions.




Thanks for your help.



"Hilary Cotter" <hilary.cotter (AT) gmail (DOT) com> escribió en el mensaje
news:exdnkkS%23EHA.1076 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Quote:
Can you enable the databases for publishing and then remove them?

If there are no live subscriptions you can merely delete the contents of
MSreplication_subscriptions and MSsubscription_agents if you have
transactional replication.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"JG Espinoza" <jasiele (AT) NOSPAMhotmail (DOT) com> wrote in message
news:ePyf4TS%23EHA.3616 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Hi all,

How can I remove a list of subscriptions from the server?


My server acts as PUBLISHER and SUBSCRIBER at the same time, but both
features has been disabled. So, I can't delete the subscriptions list
because I have no PUBLISHER and SUBSCRIBER now.


I've tryied with differents commands like sp_dropsubscriptions,
sp_dropsubscriber, etc, but nothing works.



Is there any way to drop all this trash?



thanks.







Reply With Quote
  #4  
Old   
Paul Ibison
 
Posts: n/a

Default Re: drop subscriptions - 01-13-2005 , 02:56 AM



As the databases aren't used for publications or
subscriptions, you could use sp_removedbreplication.
Regards,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)


Reply With Quote
  #5  
Old   
Hilary Cotter
 
Posts: n/a

Default Re: drop subscriptions - 01-13-2005 , 08:39 AM



My above answer about enabling and disabling the databases for publication
was a bad one.

For transactional all you have to do is

delete from MSreplication_subscriptions

or

delete from MSsubscription_agents

To get rid of merge publication metadata use this script

http://groups-beta.google.com/group/...4?dmode=source

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"JG Espinoza" <jasiele (AT) NOSPAMhotmail (DOT) com> wrote

Quote:
I can enable the database but i can't delete it as well.


How can I delete the content of MSreplication_subscriptions and
MSsubscription_agents?


I have both transactional and merge subscriptions.




Thanks for your help.



"Hilary Cotter" <hilary.cotter (AT) gmail (DOT) com> escribió en el mensaje
news:exdnkkS%23EHA.1076 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Can you enable the databases for publishing and then remove them?

If there are no live subscriptions you can merely delete the contents of
MSreplication_subscriptions and MSsubscription_agents if you have
transactional replication.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"JG Espinoza" <jasiele (AT) NOSPAMhotmail (DOT) com> wrote in message
news:ePyf4TS%23EHA.3616 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Hi all,

How can I remove a list of subscriptions from the server?


My server acts as PUBLISHER and SUBSCRIBER at the same time, but both
features has been disabled. So, I can't delete the subscriptions list
because I have no PUBLISHER and SUBSCRIBER now.


I've tryied with differents commands like sp_dropsubscriptions,
sp_dropsubscriber, etc, but nothing works.



Is there any way to drop all this trash?



thanks.









Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.