When trying to restore a backup to a SQL Server Express 2008 database I got the following error:
Restore failed for Server '...\SQLEXPRESS'. (Microsoft.SqlServer.SmoExtended)
System.Data.SqlClient.SqlError: The database was backed up on a server running version
10.50.1600.
That version is incompatible with this server, which is running version 10.00.2531.
Either restore the database on a server that supports the backup, or use a backup
that is compatible with this server. (Microsoft.SqlServer.Smo)
Is there a way to get a backup which is compatible with the older (in my case 10.00.2531) version from the newer (in my case 10.50.1600) version of SQL Server Express?
-
try this solution dba.stackexchange.com/a/289341/227324serge– serge2021年04月08日 12:24:45 +00:00Commented Apr 8, 2021 at 12:24
5 Answers 5
You'd have use the Import/Export wizards in SSMS to migrate everything
There is no "downgrade" possible using backup/restore or detach/attach
-
4there is an alternative, and more clear solution, here dba.stackexchange.com/a/289341/227324serge– serge2021年04月08日 12:25:30 +00:00Commented Apr 8, 2021 at 12:25
-
11 years after the OP, this comment is now the best answer to the question.RolfBly– RolfBly2022年10月28日 10:27:09 +00:00Commented Oct 28, 2022 at 10:27
You can use the Import/Export wizard to move data between databases.
Right click on the database you want to export, choose "Tasks", then "Export Data". The wizard will guide you through the process.
You're right, though. You won't be able to do a backup/restore moving from SQL Server 2008 R2 to SQL Server 2008 Express.
SQL Server backup doesn't support backward compatibility
Steps to get DB on older versions -
For Schema: right click on your database --> Tasks --> generate scripts -->next-->next--> click on advanced button --> change the option "type Of Data to script" to "schema" -->ok -->next -->next
For Data: right click on your database --> Tasks --> generate scripts -->next-->next--> click on advanced button --> change the option "type Of Data to script" to "data" -->ok -->next -->next
-
1One problem with this method is for big databases (many tables, and huge data) running scripts to restore takes long time. but it is handy and easyIman– Iman2017年02月21日 13:40:03 +00:00Commented Feb 21, 2017 at 13:40
The only way is to create a new database on the 10.00.2531 version and import the data from 10.50.1600.
You can't restore down to an older version.
right click on your database --> Tasks --> generate scripts -->next-->next--> click on advanced button --> change the option "type Of Data to script" to "schema and data" -->ok -->next -->next so now you have a script that creates database and its table and fills the data in it :) ;)
-
2Depending on the amount of data, that script could be enormous...Thomas Rushton– Thomas Rushton2013年05月19日 15:39:17 +00:00Commented May 19, 2013 at 15:39
-
1@ThomasRushton That script is by definition going to be bigger than the database itself, probably by at least double if not worse! I hope it's not a 50 GB database...ErikE– ErikE2013年10月11日 00:19:19 +00:00Commented Oct 11, 2013 at 0:19
-
-
this is not a duplicate answer, it is a great answer at the type of data is "schema AND data" ! ;-) which is what I needed!juFo– juFo2017年03月08日 08:12:36 +00:00Commented Mar 8, 2017 at 8:12
-
1@Burgi this answer is older than dsingh's. He simply copied Sarah's and added 2 options, 1 for schema the other for data. His is the duplicate.basher– basher2017年05月26日 19:31:10 +00:00Commented May 26, 2017 at 19:31
Explore related questions
See similar questions with these tags.