简体   繁体   English

将数据库从SQL 2005 Standard迁移到SQL 2008 R2 Web Edtition期间的兼容性问题

[英]Compatibility problems during migrating database from SQL 2005 Standard to SQL 2008 R2 Web Edtition

we have some troubles with migrating user database from SQL 2005 Standard to SQL 2008 R2 Web Edtition. 我们在将用户数据库从SQL 2005 Standard迁移到SQL 2008 R2 Web Edtition时遇到了一些麻烦。 After selecting .bak file containing backup, the Management Studio spits out error saying: 选择包含备份的.bak文件后,Management Studio会发出错误消息:

Specified cast is not valid. (SqlManagerUI)

(More details at: http://pastebin.com/u1cZP25S ) (更多详情请访问: http//pastebin.com/u1cZP25S

Trying to restore from query with VERIFY ONLY option results in: 尝试使用VERIFY ONLY选项从查询中恢复会导致:

Msg 3203, Level 16, State 1, Line 1
Read on "E:\XXXMigration\XXX.bak" failed: 38(failed to retrieve text for this error. Reason: 15105)
Msg 3013, Level 16, State 1, Line 1
VERIFY DATABASE is terminating abnormally.

The problem is that's the last DB from this server which has to be migrated. 问题是这个服务器中最后一个必须迁移的数据库。 Other 5 databases were migrated (back-up & restore) without any problem. 其他5个数据库迁移(备份和恢复)没有任何问题。

I know there is issue with migrating from 2005 Enterprise to 2008 Express (from higher to lower edition) and that you cannot migrate from higher version to lower (from 2008 to 2005 and so on ...). 我知道从2005 Enterprise迁移到2008 Express(从较高版本到较低版本)存在问题,并且您无法从较高版本迁移到较低版本(从2008年到2005年等等)。

But as I figured out, the web edition of SQL 2008 R2 should be in fact the Standard edition with some minor limitations. 但正如我所知,SQL 2008 R2的网络版本实际上应该是标准版,但有一些小的限制。 And I don't know, why this specific database cannot be restored on Web Edition and what causes this. 我不知道,为什么这个特定的数据库无法在Web Edition上恢复,导致这种情况的原因。 Could be there some particular features / settings used in database which prevents it from restoring on target server? 可能有数据库中使用的某些特定功能/设置阻止它在目标服务器上恢复?

Database server info:

Source database server: 9.00.1406.00    RTM    Standard Edition
Target database server: 10.50.1600.1    RTM    Web Edition (64-bit)

Thank you for any advice. 谢谢你的任何建议。

EDIT 编辑

I've found out that restoring this database to 2008 R2 Enterprise is possible and then when I backup it there, it's possible to restore it on 2008 R2 Web Edition. 我发现将此数据库还原到2008 R2 Enterprise是可能的,然后当我在那里备份它时,可以在2008 R2 Web Edition上恢复它。 Not a nice workaround, but saves the situation. 不是一个很好的解决方法,但保存的情况。

Still curious why this situation can occur. 仍然好奇为什么会出现这种情况。

-- M. Frank (miroslav.frank (at) e-fractal.cz) - M. Frank(miroslav.frank(at)e-fractal.cz)

Have you tried running the Upgrade Advisor http://www.microsoft.com/download/en/details.aspx?id=11455 - it might be able to highlight problems for upgrading the original database. 您是否尝试过运行升级顾问http://www.microsoft.com/download/en/details.aspx?id=11455 - 它可能会突出显示升级原始数据库的问题。

Also, have you looked into the compatibility level of the database, ensuring that it is being imported as a 2005-database? 另外,您是否已查看数据库的兼容级别,确保将其作为2005数据库导入? This has worked for me with several databases, although in situations that did not also include different editions of the server. 虽然在不包含服务器的不同版本的情况下,这对我来说有几个数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM