-----------数据库还原或版本升级出现版本错误时可参考。
Internal SQL Server Database Version Numbers
The database 'MyDatabase' cannot be opened because it is version 665. This server supports version 661 and earlier. A downgrade path is not supported.
“MyDatabase" 的数据库无法打开,因为它是665版本。该服务器支持661和更早版本。不支持降级路径。
|
可以利用SQL语句查看本机数据库版本:
select @@VERSION
SQL Server Version
|
Internal Database Version
|
SQL Server 2008 R2
|
665
|
SQL Server 2008
|
661
|
SQL Server 2005 SP2+ with vardecimal enabled
|
612
|
SQL Server 2005
|
611
|
SQL Server 2000
|
539
|
SQL Server 7
|
515
|
Target SQL Server Version
|
Source SQL Server Version
|
Internal Database Version
|
SQL Server 2008 R2
|
SQL Server 2008 R2
|
665
|
SQL Server 2008
|
661
|
|
SQL Server 2005 with vardecimal enabled
|
612
|
|
SQL Server 2005
|
611
|
|
SQL Server 2000
|
539
|
|
SQL Server 2008
|
SQL Server 2008
|
661
|
SQL Server 2005 with vardecimal enabled
|
612
|
|
SQL Server 2005
|
611
|
|
SQL Server 2000
|
539
|
|
SQL Server 2005 SP2+
|
SQL Server 2005 with vardecimal enabled
|
612
|
SQL Server 2005
|
611
|
|
SQL Server 2000
|
539
|
|
SQL Server 7
|
515
|
|
SQL Server 2005
|
SQL Server 2005
|
611
|
SQL Server 2000
|
539
|
|
SQL Server 7
|
515
|
|
SQL Server 2000
|
SQL Server 2000
|
539
|
SQL Server 7
|
515
|
|
SQL Server 7
|
SQL Server 7
|
515
|