Solved

Confirm Attach/Detach     backup/restore  logic

Posted on 2016-08-29
3
30 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
3 Comments
 
LVL 69

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 39

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 45

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 …
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

707 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

13 Experts available now in Live!

Get 1:1 Help Now