Recently I was working on a database which was on two different versions, SQL Server 2008 and SQL Server 2008 R2.
And in the middle I wanted to do a restore from SQL Server 2008 R2 to SQL Server 2008, and went through a bit of issues, and finally found out that there is no easy way to get out of this Issue.
I had taken a backup of the SQL Server Database from R2 and tried restoring it on SQL Server 2008, and got the below message,
“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)”
When we look through the above error, that’s clear that, the basic sql server physical version is different for both SQL Server SQL Server 2008 and SQL Server 2008 R2.
SQL Server 2008 R2 is 10.5
SQL Server 2008 is 10.
So, now the issue was on how to accomplish it, the below is what had to be done, it is laborious manual way, I suppose it is only the developers that encounter such problems, so Microsoft will not for sure address it J because even if the feature is there, there would be many few people using it.
We need to generate a script of the complete database with a proper Script Server Version selected. Can be done by
Tasks –> Generate Scripts–> Script entire database and all database objects –> Save the File –> Got to Advanced –> Select proper Script for Server Version 200/2005/2008 –> Type of data to Script –> select Schema/Data/both –> Execute it on the target server.
Of course you will be getting lots of errors w.r.t the primary-foreign key relationships, need to address them all, or do a manually by using the import and export wizard w.r.t the data.
Please let me know if there are any other suitable better performing methods for accomplishing the above in comments.
{ Comments on this entry are closed }


