Solved

Confirm Attach/Detach     backup/restore  logic

Posted on 2016-08-29
3
52 Views
Last Modified: 2016-09-09
from what i know.  you can't detach a 2008 database and reattach it to a 2012 instance.  
Can someone confirm that you can only attach and detach between the same major version of sql server.

Also... you can backup and restore to a higher version of sql server.
ie.... backup a db on a 2008 sql server and restore it on 2012 sql server.

you can not go backwards in backup restore tho
ie backup 2012 db and restore to 2008
0
Comment
Question by:jamesmetcalf74
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 250 total points
ID: 41774829
>>from what i know.  you can't detach a 2008 database and reattach it to a 2012 instance.  

I have done that a couple of times.

>>Also... you can backup and restore to a higher version of sql server.

This is true. Higher or equal.

Another way is to use tools like Red Gate SQL Compare and SQL Data Compare which are using scripts to update the destination database and that is working even if the destination is older.
0
 
LVL 40

Assisted Solution

by:lcohan
lcohan earned 125 total points
ID: 41774833
Correct - from Lower to Higher major versions Detach/Attach OR Backup/Restore works fine.

Just make sure! to keep a copy of MDF and/or backup file on older version as there's NO WAY to go back - just in case...

Also I always issue a explicit CHECKPOINT before detach.
0
 
LVL 50

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 125 total points
ID: 41775916
Always forward (at least 3 versions higher) and never backwards.
I think the explanation is simple. Old versions doesn't know about new versions but the opposite is true.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

717 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