开发者

Restoring SQL 2008 R2 db on SQL 2008 Standard

开发者 https://www.devze.com 2023-01-21 08:00 出处:网络
I\'m trying to take a SQL Server 2008 R2 Expression db and restore it on my local SQL Server 2008 standard, however it gives me the error:

I'm trying to take a SQL Server 2008 R2 Expression db and restore it on my local SQL Server 2008 standard, however it gives me the error:

The media family on device 'C:\jtoth\Backups\ucampus.bak' is incorrectly formed. SQL Server cannot process this media family.

R2 is version 660 and standard is 655 and I know that you can't restore to an older version, but there has to be some way around this. Is there some free tool for scripting out the entire R2 database (inclu开发者_如何学Pythonding not just structure but inserts for the data) that I can then run on my standard instance?


Normally one of

  • SSIS (via the import/export wizard)
  • 3rd party tool from Red Gate or similar.


You're right that the backup cannot be restored. See: SQL Server 2008 R2 bumps the database version. Your best bet would probably be the Red-Gate compare tools.


Use the Copy Database Wizard!, the Copy Database Wizard lets you move or copy databases and their objects easily from one server to another.

Restoring SQL 2008 R2 db on SQL 2008 Standard


In SQL Server Management Studio, right click on the database, choose Tasks, then "Generate Scripts". Options in there to generate full scripts including the table structure and all the data. Additionally you can choose which version to script for.


Visual Studio has a Database Compare tool. Might be handy. See the Data menu. Not as good as 3rd party tools though..


Just an idea - how about changing compatibility level to SQL Server 2005 before backup? That is of course if nothing 2008 specific was used.

0

精彩评论

暂无评论...
验证码 换一张
取 消