Showing posts with label subscription. Show all posts
Showing posts with label subscription. Show all posts

Friday, February 24, 2012

article for subscription that does not exist ?!?

Hi There

I hope someone can help me asap.

I need to alter a column on a replicated table.

So i execute sp_dropsubscription and sp_droparticle for the table for all publication to that article in the database.

Usually i just alter the table and then execute sp_adddarticle and sp_addsubscription afterwards and everything is cool.

However in this case after i drop the subscriptions for the article, when i try alter the table it says it is being replicated.

I query sysobjects and see that the table has replinfo = 1 , this is snapshot replication, but i only have transactional replication ? I used to have snapshot but that was dropped long ago.

I then query sysarticles and i find the table, however the pubid (publication id) for the table is equal to the publication id of another databases publication ? I also have found in sysarticles articles with a publication id's equal to publications that do not exist, for example articles will have pubid of 2 , but if i run sp_helppublication on all user databases there is no publciation with an id of 2 ?

Please help, even after i drop all subscriptions to an article it seems that sql server thinks the article belongs to another databases publciation or publications that no longer exist?

Maybe there is some sort of cleanup sp i can run or something but it seems to me sql server has gotten articles confused with old deleted publications that no longer exist.

Therefore after dropping all subscriptions i still cannot alter tables as sql server think it is still being published but it is not!

Thanx

if you don't mind dropping the publication (script it out before dropping it), you can clean everything up by executing proc sp_removedbreplication. Let me know if this doesn't work.|||

Hi

Unfortunately we have too many publications and they are too big , so that is not an option.

However i deleted the problem entry from sysarticles and everything worked after that.

Thanx

Monday, February 13, 2012

Argghh ..

OK. I'm officially insane.
I've managed to create an orphaned push subscription. I deleted the
subscribers from EM via the publisher screen, then I deleted the publishers.
But under replication|subscribers there is still a subscriber to a
publication that does not exist.
It seems my efforts to discover ways to break replication are paying off.
Bob Castleman
Replicating Suicidal Tendencies
Try sp_dropsubscriber and sp_dropsubscription.
"Bob Castleman" <nomail@.here> wrote in message
news:uuGDxaNrFHA.3720@.TK2MSFTNGP14.phx.gbl...
> OK. I'm officially insane.
> I've managed to create an orphaned push subscription. I deleted the
> subscribers from EM via the publisher screen, then I deleted the
> publishers. But under replication|subscribers there is still a subscriber
> to a publication that does not exist.
> It seems my efforts to discover ways to break replication are paying off.
> Bob Castleman
> Replicating Suicidal Tendencies
>
>
|||Had already tried that. Didn't work. Ultimately used sp_dropdistributor.
Development servers are so much fun.
Any clue as to how I can end up with orphaned subscriptions? It seems
dropping things through EM would be relatively safe and it would clean up
after itself.
"ChrisR" <noemail@.bla.com> wrote in message
news:eWaSy3XrFHA.1032@.TK2MSFTNGP12.phx.gbl...
> Try sp_dropsubscriber and sp_dropsubscription.
>
> "Bob Castleman" <nomail@.here> wrote in message
> news:uuGDxaNrFHA.3720@.TK2MSFTNGP14.phx.gbl...
>