Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downgrade database from SQL Server 2012 to 2008 [closed]

Tags:

sql

sql-server

I want to downgrade the database to SQL Server 2008 Enterprise edition. I know there is no direct option. I tried to backup on 2012 and then restore on 2008. Not working.Any Idea on how to completely transfer database ?

like image 326
city0666 Avatar asked Apr 09 '26 09:04

city0666


1 Answers

You cannot convert a SQL Server 2012 database file to a SQL Server 2008 database file. The downgrade is not possible. The compatibility of database files is available only from an old version to a newer one, not the opposite. Indeed, you can convert a SQL Server 2008 database file to SQL Server 2012 database file.

Use the integrated SQL Server tools:

  1. Right click on the database.
  2. Select Tasks and Generate Scripts.

Following the wizard, at the end of it in the Advanced Scripting Options clicking the "Advanced" button, select the SQL Server version for which you want to generate the scripts, using the option Script for Server Version. Moreover, you would be able to generate the scripts to export the schema of your objects and/or the data, selecting the option Types of data to script, as you can see in the screenshot below:

enter image description here

The time needed for the process to generate both (schema and data) will depend on the amount of data you want to export, of course. As @Arun suggested, have a look at the process in more detail here, using step by step instructions.

like image 142
Alberto Solano Avatar answered Apr 12 '26 00:04

Alberto Solano



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!