Tell me more ×
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.

Is there a way to restore a SQL Server 2012 database backup to a SQL Server 2008?

I tried to attach file, it does not work.

share|improve this question
What was the DB compatibility version of the SQL DB backed-up? – SliverNinja Jul 9 '12 at 16:48
2  
@SilverNinja compatibility level does not matter. – Aaron Bertrand Jul 9 '12 at 16:56
Nope. backup / restore is not backwards compatible. I wouldn't trust it. Import/export if you want to sleep at night. – Tony Hopkinson Jul 9 '12 at 16:58
I've seen people try broggling a backup backwards, results never been worth the effort or risk. – Tony Hopkinson Jul 9 '12 at 17:00
@TonyHopkinson What does "broggling" mean? Results are simply not possible unless you use a hex editor to modify the MDF/LDF files to make SQL Server think they're older than they are. – Aaron Bertrand Jul 9 '12 at 17:20
show 2 more comments

migrated from stackoverflow.com Jul 9 '12 at 17:00

3 Answers

It won't work. The only way I think, but not sure, is to use the Import and Export utility. As far as data types of both are same, there shouldn't be any issues.

share|improve this answer

No, you cannot go backward, only forward. You can create an empty database on 2008 and then use the Generate Scripts wizard in Management Studio to script the schema and data (or 3rd party comparison tools from Red Gate and others). Make sure you set the right target version as 2008, and you'll have to flesh out incompatible things (e.g. OFFSET or FORMAT) that you might have used in 2012.

share|improve this answer

Your Answer

 
discard

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