摘要:在哪里可以找到对SQL Server文件版本号的引用?
背景:我正在将企业网站从安装了SqlServer 2000的Win2003服务器迁移到带有SqlServer 2008的WinServer 2008盒子。我做了标准的T-SQL“CREATE DATABASE”,接着是“RESTORE DATABASE”命令和我的数据库文件已导入,但在我不理解的过程中收到了很多信息:
Processed 141992 pages for database 'WebsiteMain', file 'WebsiteMain' on file 1.
Processed 2 pages for database 'WebsiteMain', file 'WebsiteMain_log' on file 1.
Converting database 'WebsiteMain' from version 539 to the current version 655.
Database 'WebsiteMain' running the upgrade step from version 539 to version 551.
Database 'WebsiteMain' running the upgrade step from version 551 to version 552.
Database 'WebsiteMain' running the upgrade step from version 552 to version 611.
Database 'WebsiteMain' running the upgrade step from version 611 to version 621.
Database 'WebsiteMain' running the upgrade step from version 621 to version 622.
Database 'WebsiteMain' running the upgrade step from version 622 to version 625.
Database 'WebsiteMain' running the upgrade step from version 625 to version 626.
Database 'WebsiteMain' running the upgrade step from version 626 to version 627.
Database 'WebsiteMain' running the upgrade step from version 627 to version 628.
Database 'WebsiteMain' running the upgrade step from version 628 to version 629.
Database 'WebsiteMain' running the upgrade step from version 629 to version 630.
Database 'WebsiteMain' running the upgrade step from version 630 to version 631.
Database 'WebsiteMain' running the upgrade step from version 631 to version 632.
Database 'WebsiteMain' running the upgrade step from version 632 to version 633.
Database 'WebsiteMain' running the upgrade step from version 633 to version 634.
Database 'WebsiteMain' running the upgrade step from version 634 to version 635.
Database 'WebsiteMain' running the upgrade step from version 635 to version 636.
Database 'WebsiteMain' running the upgrade step from version 636 to version 637.
Database 'WebsiteMain' running the upgrade step from version 637 to version 638.
Database 'WebsiteMain' running the upgrade step from version 638 to version 639.
Database 'WebsiteMain' running the upgrade step from version 639 to version 640.
Database 'WebsiteMain' running the upgrade step from version 640 to version 641.
Database 'WebsiteMain' running the upgrade step from version 641 to version 642.
Database 'WebsiteMain' running the upgrade step from version 642 to version 643.
Database 'WebsiteMain' running the upgrade step from version 643 to version 644.
Database 'WebsiteMain' running the upgrade step from version 644 to version 645.
Database 'WebsiteMain' running the upgrade step from version 645 to version 646.
Database 'WebsiteMain' running the upgrade step from version 646 to version 647.
Database 'WebsiteMain' running the upgrade step from version 647 to version 648.
Database 'WebsiteMain' running the upgrade step from version 648 to version 649.
Database 'WebsiteMain' running the upgrade step from version 649 to version 650.
Database 'WebsiteMain' running the upgrade step from version 650 to version 651.
Database 'WebsiteMain' running the upgrade step from version 651 to version 652.
Database 'WebsiteMain' running the upgrade step from version 652 to version 653.
Database 'WebsiteMain' running the upgrade step from version 653 to version 654.
Database 'WebsiteMain' running the upgrade step from version 654 to version 655.
RESTORE DATABASE successfully processed 141994 pages in 141.262 seconds (7.852 MB/sec).
我只能假设版本号是指SqlServer内部的重要内容,但是我很难相信自2000年以来已经有很多发布/补丁/升级到SqlServer。此外,我不记得曾经看到SQL Server版本号在所示范围内以三位数字表示。
答案 0 :(得分:4)
Jonathan Kehayias在他的博客中引用了以下版本号:
SQL Server 7.0数据库的版本号为515 SQL Server 2000数据库的版本号为539 SQL Server 2005数据库的版本号为611/612 SQL Server 2008数据库的版本号为655
答案 1 :(得分:1)
根据Paul Randal ,谁应该知道,这是数据库的物理版本号。请参阅此TechNet magazine link
中的第一个问题千电子伏
编辑:
您可以通过运行
获取类似信息DBCC TRACEON (3604);
GO
DBCC DBINFO('databasename')
GO
我仍然在寻找明确的名单........
答案 2 :(得分:0)
说SQL Server 2008和SQL Server 2000数据库格式之间存在110个差异并不合理。
答案 3 :(得分:0)
出于兴趣,为什么要创建数据库?难道你不能简单地恢复它吗?
答案 4 :(得分:0)
如果要查询SQL以获得具有文件版本和兼容级别的当前数据库列表,请按以下步骤操作:
SELECT name, version, cmptlevel, filename FROM master.sys.sysdatabases