I have two SQL Server 2005 that are to be migrated to SQL Server 2008 R2.
The original pair of servers contain a database that are involved in bidirectional transactional replication between them. In other words SQL2005ServerA.DatabaseA
and SQL2005ServerB.DatabaseA
are involved in bidirectional transactional replication.
Now I have to move these databases to two new servers, call them SQL2008ServerA
and SQL2008ServerB
.
Is this pretty straight-forward? After disconnecting the application server, do I just backup and restore to the new servers, and then recreate the replication without snapshots?
Best Answer
Yes and No .. depends on what is your downtime (maintenance window), database size or amount of data you are replicating (whole or subset of articles).
Script out current replication setup (both create and drop).
First make sure that you don't have any pending commands to replicate and no user connections while you are doing a cut-over to new server.
Below are some of the ways you can choose to ease your migration :
Note:
By default, the generated scripts will have
@sync_type = N'automatic'
=> the subscription will need initializing as a brand new subscription. Instead change it to@sync_type = N'none' or @sync_type = N'replication support only'
=> does not generate replication procs at subscriber.Obviously, logins and users with appropriate permissions should be created before hand.
References :