简体   繁体   English

SQL 恢复到2005后Server 2000数据库为空

[英]SQL Server 2000 database after restore to 2005 is empty

I have very old backup file ( .bak ) of SQL Server 2000. After restoring it to SQL Server 2005, the database looks empty (please see screenshot).我有 SQL Server 2000 的非常旧的备份文件 ( .bak )。将其恢复到 SQL Server 2005 后,数据库看起来是空的(请参见屏幕截图)。

What is the probable cause?可能的原因是什么?

screenshot截屏

Answer for other people looking for solution: From previous screenshot 6.5 means database compatibility version 65 (SQL Server version 6.5. All versions described here: https://en.wikipedia.org/wiki/History_of_Microsoft_SQL_Server寻找解决方案的其他人的答案:从之前的屏幕截图来看,6.5 表示数据库兼容性版本 65(SQL Server 版本 6.5。此处描述的所有版本: https:https://en.wikipedia.org/wiki/History_of_Microsoft_SQL_Server

So I had to open SQL Enterprise manager 8.0 (which supports such an old database, version 65) and change compatibility level of the database to 80 (highest available).所以我不得不打开 SQL Enterprise manager 8.0(它支持这样一个旧数据库,版本 65)并将数据库的兼容级别更改为 80(最高可用)。 Than make a backup of DB and restore it in SQL Server 2000-2008 as lvl 80 is supported by them.比备份数据库并在 SQL Server 2000-2008 中恢复它,因为它们支持 lvl 80。 Please see screenshot below: Compatibility lvl请看下面的截图:兼容性等级

And you can repeat the steps so for example DB restored in SQL Server 2008 can be changed (compatibility lvl) to a 100. Back it up again and restore in SQL 2017 or higher, you can easily find compatibility level tables: MICROSOFT WEBSITE COMPATIBILITY LEVEL您可以重复这些步骤,例如可以将 SQL Server 2008 中恢复的数据库(兼容性级别)更改为 100。再次备份并恢复 SQL 2017 或更高版本,您可以轻松找到兼容性级别表: MICROSOFT WEBSITE COMPATIBILITY LEVEL

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

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