all groups > sql server replication > december 2003 >
You're in the

sql server replication

group:

restore published database after master db restore


restore published database after master db restore docware NO[at]SPAM hotmail.com
12/31/2003 4:40:02 AM
sql server replication:
Hi,

We run a merge replication using SQL Server 2000.
In order to be prepared for crash situations, I am in the middle of
testing several rescue scenarios.

Presently I simulate a corrupted master database on the publisher. Due
to the corrupted master db SQL Server is unable to start. I have
available backups of all system and user databases. This is what I
did:

- create a new master db using the rebuild-master-db tool
-> now SQL Server is able to start
- restore backed up master db
- restore backed up msdb, model, distribution dbs
- restore the published user db
-> The publication is now visible in Enterprise Manager tree. But when
I want to open the publication properties, SQL Server tells me "Error
20026: The publication xyz does not exist".

What am I doing wrong. I read the online documentation (replication /
backup and restore of replicated databases / strategies for backup and
restore of replicated databases). From what I read I think it should
be possible to restore a replication this way without the need to
recreate the publication and reinitialize all subscribers (we have
about 10 subscribers temporarily connected to our server via low
bandwith and the replicated database has a size of 150 MB so
reinitialization is difficult).

Thanks for help

Re: restore published database after master db restore Hilary Cotter
12/31/2003 10:12:12 AM
restore the published db with the keep replication switch.
[quoted text, click to view]

Re: restore published database after master db restore docware NO[at]SPAM hotmail.com
1/1/2004 4:32:43 AM
[quoted text, click to view]

Hilary, thanks for your answer. Unfortunately this doesn't work either
for me (same error). From what I read from the docs this switch is for
restore on a different server. Is a rebuilt master db a different
server from the point of view of the SQL Server?

I hope you have more ideas.

Re: restore published database after master db restore docware NO[at]SPAM hotmail.com
1/2/2004 4:14:47 AM
No, I was wrong. The switch keep_replication did it. I repeated the
procedure several time and it worked always then.

Hilary, thanks a lot for your help!

AddThis Social Bookmark Button