Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I have to move a 5 TB SQL Server 2008 database that has mirroring setup to a new server that will have SQL Server 2012 and always on AG setup.

I am wondering if detach/attach would be faster or backup/restore. The compressed split backup is about 1.2 TB.

I understand that detach/attach means database will not be available on the source.

Any advise on matters to consider, as this will be a first SQL Server upgrade for me.

Thanks as always to the DBA community.

share|improve this question

2 Answers 2

First you need to run upgrade advisor to be able to confirm that there won't be any errors during the upgrade from 2008 to 2012.

If you want to minimize downtime, then setup mirroring from SQL 2008 to 2012 (yes mirroring is still supported but declared deprecated). Then during the day of cutover (migration), change the mode of mirroring to SYNCHRONOUS and failover. This will require couple of seconds to bring the mirror server DB online.

this way, you can prepare in advance and minimize the downtime.

once the 2012 server db is online, you can get that database in AG. Make sure to remove mirroring once you failover.

I have put in detailed steps for migration at : Upgrade SQL Server 2000 database to 2008 R2 and enable new features

Don't go for detach/attach as it is risky as if something goes wrong, you will end up without backup. Backup restore is the best method.

share|improve this answer
    
Thank you, very useful advise. –  TDPSQL_Newbie Feb 12 at 14:32
    
@TDPSQL_Newbie if you feel that the answer - answers your question then please upvote / mark as answer. –  Kin Feb 12 at 14:46
    
I would love to but I don't have enough points to vote :( –  TDPSQL_Newbie Feb 20 at 21:01
    
I would suggest doing the above in Test environment first and running your application in test against the converted DB to ensure there are no issues. –  armitage Apr 15 at 11:32

Hi best option is to to use backup restore.

  1. It will keep minimum down time
  2. This is safe as your database at 2008 will be available till your 2012 is ready
  3. you can do comparison testing for few days
  4. you can make sure if there is any issues in 2012 you can take your business back to 2008 and avoid worst situation till all check from app is done
share|improve this answer
    
Thank you very much for the tip. –  TDPSQL_Newbie Feb 12 at 14:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.