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.
|
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. |
|||||||||||||
|
|
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. |
|||
|
|
|
You have couple of options : Option A : Script out database in compatibility mode using Generate script option : Note : If you script out database with schema and data, depending on your data size, the script will be massive and wont be handled by SSMS, sqlcmd or osql (might be in GB as well).
Option B: First script out tables first with all Indexes, FK's, etc and create blank tables in the destination database - option with SCHEMA ONLY (No data). Use BCP to insert data
This is very fast bcp method as it uses Native mode. |
|||
|
|
|
There is no supported way to do this because SQL Server doesn’t allow this kind of compatibility. What you can do is to
If you don’t have SQL Server 2012 then you can use third party tools to read backup and extract data and structure. In this case just create empty database on SQL 2008 and use tools such as ApexSQL Diff and ApexSQL Data Diff to synchronize objects and data. You can find these from other major vendors too such as Red-Gate or Idera. |
|||
|
|
|
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. |
|||
|
|
|
Checkout these references would be help you: http://msdn.microsoft.com/en-us/library/ms140052.aspx How can I backup & restore a single FILEGROUP in Sql Server 2008 Thanks |
|||
|
|