SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Replication (2008)
 SQL Replication 2005/2008
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ajgurrieri
Starting Member

USA
2 Posts

Posted - 02/14/2013 :  17:07:10  Show Profile  Reply with Quote
I am trying to figure out the best way to migrate data from a current production MS SQL 2005 Server to a newly built MS SQL 2008 Server. The plan was to use SQL Replication and I was going to use transactional replication but the 68GB database we have is a vendor database with no primary keys.
Is there a anyone that has a good way to do this with a step by step documentation? The source database is 2005 and the destination will be a 2008; however, I have scripts I can run to upgrade the database schema's.

tkizer
Almighty SQL Goddess

USA
37157 Posts

Posted - 02/14/2013 :  17:42:15  Show Profile  Visit tkizer's Homepage  Reply with Quote
Replication is not a good way to migrate a database to a new server. The best options are backup/restore or detach/attach. I prefer backup/restore and generally will use mirroring to get it in place ahead of time and keep it up to date until ready for the switcheroo. When I use mirroring, I can keep the migration's downtime for just the database to under a minute.

Just run the upgrade scripts after you've failed over to the 2008 server using mirroring.


Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

ajgurrieri
Starting Member

USA
2 Posts

Posted - 02/15/2013 :  10:24:28  Show Profile  Reply with Quote
Thank you Tara for the advice... I have never setup a mirror before with mixed SQL servers. How would you do that with a current production server running on SQL 2005 standard and another one running on SQL 2008 standard... Also, what if the client doesnt want to use Enterprise edition can you still setup a mirror? I always thought you had to use Enterprise for mirroring...
The whole purpose of this project is like you said "keep the migration's downtime for just the database to under a minute.".
Any advice or links/documentation would be VERY helpful - I'll also send you a nice Starbucks gift card for the help :)
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
37157 Posts

Posted - 02/15/2013 :  13:35:56  Show Profile  Visit tkizer's Homepage  Reply with Quote
You can still use mirroring with your setup, but it would get more complicated since you don't have Enterprise.

Instead just setup log shipping. You can always backup/restore to the next higher version. You don't have to use the built-in log shipping, you can roll your own. You could even do it manually:

For a database of that size maybe do the full backup/restore the day before, then do a diff a couple of hours before the switcheroo, then catch up with tlogs. If you script the tlog part, you can have it done very, very quickly.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

uapi100
Starting Member

Canada
5 Posts

Posted - 02/20/2013 :  08:52:41  Show Profile  Reply with Quote
Hello dude..Replication is not the best way to migrate the data to one server to other its best way to save the file or attach the file in his Email and send to another SQL 2008 Server.Which method do you mostly use for the migrate the data??

Edited by - tkizer on 02/25/2013 13:11:01
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000