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

sql server replication

group:

How to recreate replication system objects?


Re: How to recreate replication system objects? Paul Ibison
8/30/2005 12:00:00 AM
sql server replication:
I'm guessing here, but did you have a failed installation? If so, then
reapplying sp4 should do the trick.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

How to recreate replication system objects? Chris
8/30/2005 3:53:41 AM
Does anyone know what script I need to run to recreate the
replication system objects in MSSQL?

I believe it's in the Install Directory after installing SQL?

Will it destroy any existing publications/subscriptions on the server?

I have 2 other publications that are running I want to keep.

Thanks
Re: How to recreate replication system objects? ChrisR
8/30/2005 9:19:09 AM
RClick Replication component/ Generate SQL Script.


[quoted text, click to view]

Re: How to recreate replication system objects? Paul Ibison
8/31/2005 12:00:00 AM
Chris,
in EM - 'Tools, Replication, Disable Publishing'.
HTH,
Paul Ibison

Re: How to recreate replication system objects? Chris
8/31/2005 6:17:27 AM
Paul
How do you do this? In QA or EM?
Thanks

[quoted text, click to view]
Re: How to recreate replication system objects? Chris Winstone
8/31/2005 9:34:49 AM
Paul
No I didn't have a failed installation as such. The replication was working
fine for about 18 months then all of a sudden I started getting errors from
the merge agent after executing sp_MSfetchidentityrange saying it could not
retrieve identity range resource for the table [TABLENAME].

A post from Hilary Cotter pointed me in the direction of the
msrepl_identity_range tables, however I decided to script the publication
for backup and try removing it. So I ran sp_removedreplication (probably too
hasty on that one!) then tried to run the puplication gen script thats when
I started getting the invalid object name 'syspublications' This is where I
am at at the moment. no replication at all! I can't even remove replication
manually - documented in Q324401!

I'm really stuck! Can't go forward or back! So I thought maybe recreating
the replication system objects would help me go in at least one direction!

[quoted text, click to view]

Re: How to recreate replication system objects? Paul Ibison
8/31/2005 10:44:37 AM
Chris,
what about if you disable replication then reenable, then execute your
scripts?
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Re: How to recreate replication system objects? Chris Winstone
9/2/2005 12:32:40 PM
Thanks Paul
Thats worked!

I now have a problem when creating my scripted publication again! See later
post.

Thanks again!

[quoted text, click to view]

AddThis Social Bookmark Button