Solved

MERGE Replication - easy to restore on new server?

Posted on 2004-09-15
6
342 Views
Last Modified: 2006-11-17
I have two servers connected over the net using merge replication.

The publisher (and distributor) machine is being replaced by a new faster box. Can I simply backup the database and restore it on the new machine and expect replication to continue as before - or would replication require a whole new snapshot etc?

The database is several gig in size so I would like to avoid starting replication from scratch if at all possible.

Thanks!..
0
Comment
Question by:niico
  • 2
  • 2
6 Comments
 
LVL 10

Expert Comment

by:AustinSeven
Comment Utility
Just restoring the db onto the new h/w won't do it.  I think there are only two options.  

1. Rebuild the new server and configure the publication stuff as per the original server

This is obviouisly quite a lot of work.

2. Image Restore
I haven't done this myself but I think it should be possible to use a product like Acronis True Image in combination with sysprep.exe.   It wouldn't be as easy as just restoring the image to the new h/w of course - wouldn't work.   Effectively you would clone your existing server onto a different hardware platform.   I stress, however, that I haven't actually done this.   I'm interested to know myself if it works as I'm sure I'll be in the same situation as you before too long.

AustinSeven
0
 

Author Comment

by:niico
Comment Utility
thanks AS

its looking much easier to just redo the replication to me.

if I go down that route do you think i should disable replication, then backup, then restore?

we dont have any budget for additional tools etc (and anything too complicated is quite likely to fail I would have thought).

any additional input most appreciated!
0
 
LVL 10

Expert Comment

by:AustinSeven
Comment Utility
A brief outline plan might be...

1. Prep the new server, install SQL Server and so on
2. Script out all replication on subscribers (so you can revert if need be)
3. Turn off replication (publishers and subscribers)
4. Migrate the databases to the new server (backup/restore)
5. Create/Configure Publisher/Distribution on new server
6. Amend Subsribers
7. Turn on replicaton and test
8. Rollback if it doesn't work by: a) re-applying subscriber setup (via scripts)

A few thoughts... In advance, test out the feasibility of bringing up the new server with the same Windows server and SQL Server name (either default SQL Server name or instance name).   Of course, if you do that, you can't have both servers switched on at the same time.   In principal, this would provide some benefits:-

a) No need to change subscribers' configs.
b) Can script out the publisher/distributor from the old server and re-apply it to the new server (save a lot of time).

I suggest you block out one weekend in advance to do a 'proof of concept' test.  Based on this, finalise your plan and set aside another weekend to carry out the transition.  

Interesting?

AustinSeven
0
 

Author Comment

by:niico
Comment Utility
thanks for all the input

well you know - i ended up doing things in a rather dirty way but its working fine.

i made sure the server name and directory structure was the same - stopped sql and copied all the databases over the top  (did a manual restore on master first). Andy replication and everything worked - and has been working fine for days.

dirty I know but seems totally fine. There were a few other database on there that are also fine, even down to users (which I guess makes sense).
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
Comment Utility
PAQed, with points refunded (100)

Computer101
E-E Admin
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now