本文介绍如何识别当前的Microsoft SQL Server版本号和相应的产品或服务包级别。它还介绍了如何识别所使用的特定版本的SQL Server。
How to determine which version of SQL Server 2008 is running如何确定SQL Server 2008的版本正在运行
To determine which version of Microsoft SQL Server 2008 is running, connect to SQL Server 2008 by using SQL Server Management Studio, and then run the following Transact-SQL statement.要确定哪个版本的Microsoft SQL Server 2008正在运行,连接到SQL Server 2008使用SQL Server Management Studio,然后运行下列Transact - SQL语句。 SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')选择SERVERPROPERTY('productversion'),SERVERPROPERTY('productlevel'),SERVERPROPERTY('版')
- The product version (for example, 10.0.1600.22)产品版本(例如,10.0.1600.22)
- The product level (for example, RTM)产品级别(例如,RTM中)
- The edition (for example, Enterprise)该版本(例如,企业)
Collapse this table 折叠此表
10.0.1600.22 10.0.1600.22 | RTM RTM的 | Enterprise Edition企业版 |
Collapse this table 折叠此表
Release 发布 | Sqlservr.exe Sqlservr.exe的 |
RTM RTM的 | 2007.100.1600.0 2007.100.1600.0 |
SQL Server 2008 Service Pack 1 SQL Server 2008服务包1 | 2007.100.2531.0 2007.100.2531.0 |
How to determine which version of SQL Server 2005 is running如何确定哪个版本的SQL Server 2005是运行
To determine which version of Microsoft SQL Server 2005 is running, connect to SQL Server 2005 by using SQL Server Management Studio, and then run the following Transact-SQL statement.要确定哪个版本的微软SQL Server 2005的运行,连接到SQL Server 2005使用SQL Server Management Studio,然后运行下列Transact - SQL语句。 SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')选择SERVERPROPERTY('productversion'),SERVERPROPERTY('productlevel'),SERVERPROPERTY('版')
- The product version (for example, 9.00.1399.06)产品版本(例如,9.00.1399.06)
- The product level (for example, RTM)产品级别(例如,RTM中)
- The edition (for example, Enterprise Edition)该版本(例如,企业版)
Collapse this table 折叠此表
9.00.1399.06 9.00.1399.06 | RTM RTM的 | Enterprise Edition企业版 |
Collapse this table 折叠此表
Release 发布 | Sqlservr.exe Sqlservr.exe的 |
RTM RTM的 | 2005.90.1399 2005.90.1399 |
SQL Server 2005 Service Pack 1 SQL Server 2005服务包1 | 2005.90.2047 2005.90.2047 |
SQL Server 2005 Service Pack 2 SQL Server 2005服务包2 | 2005.90.3042 2005.90.3042 |
SQL Server 2005 Service Pack 3 SQL Server 2005服务包3 | 2005.90.4035 2005.90.4035 |
How to determine which version of SQL Server 2000 is running如何确定哪个版本的SQL Server 2000正在运行
To determine which version of SQL Server 2000 is running, connect to SQL Server 2000 by using Query Analyzer, and then run the following code.要确定哪个版本的SQL Server 2000正在运行,连接到SQL Server 2000通过使用查询分析器,然后运行下面的代码。 SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')选择SERVERPROPERTY('productversion'),SERVERPROPERTY('productlevel'),SERVERPROPERTY('版')
- The product version (for example, 8.00.534)产品版本(例如,8.00.534)
- The product level (for example, "RTM" or "SP2")产品级别(例如,“RTM的”或“SP2的”)
- The edition (for example, "Standard Edition").该版本(例如,“标准版”)。 For example, the results resemble the following:例如,结果如下所示:
8.00.534 SP2 Standard Edition 8.00.534 SP2的标准版
Collapse this table 折叠此表
Release发布 | Sqlservr.exe Sqlservr.exe的 |
---|---|
RTM RTM的 | 2000.80.194.0 2000.80.194.0 |
SQL Server 2000 SP1 SQL Server 2000的SP1的 | 2000.80.384.0 2000.80.384.0 |
SQL Server 2000 SP2 SQL Server 2000的SP2的 | 2000.80.534.0 2000.80.534.0 |
SQL Server 2000 SP3 SQL Server 2000的SP3的 | 2000.80.760.0 2000.80.760.0 |
SQL Server 2000 SP3a的SQL Server 2000 SP3a的 | 2000.80.760.0 2000.80.760.0 |
SQL Server 2000 SP4 SQL Server 2000的SP4的 | 2000.8.00.2039 2000.8.00.2039 |
How to determine which version of SQL Server 7.0 is running如何确定哪个版本的SQL Server 7.0运行
To determine which version of SQL Server 7.0 is running, connect to SQL Server 7.0 by using Query Analyzer, and then run the following code.要确定哪个版本的SQL Server 7.0的运行,连接到SQL Server 7.0使用查询分析器,然后运行下面的代码。 SELECT @@VERSION选择@ @版本
Microsoft SQL Server 7.00 - 7.00.623 (Intel X86)微软SQL Server的7.00 - 7.00.623(英特尔X86) Nov 27 1998 22:20:07 1998年11月27日22时二十分07秒 Copyright (c) 1988-1998 Microsoft Corporation版权所有(c)1988-1998微软公司 Desktop Edition on Windows NT 5.1 (Build 2600: )桌面版在Windows NT 5.1(内部版本2600:)
Use the version number in the following table to identify the product or service pack level.使用下表中的版本号识别产品或服务包级别。
Collapse this table 折叠此表
Version Number版本号 | Service Pack服务包 |
---|---|
7.00.1063 7.00.1063 | SQL Server 7.0 Service Pack 4 (SP4)的SQL Server 7.0的Service Pack 4(SP4)的 |
7.00.961 7.00.961 | SQL Server 7.0 Service Pack 3 (SP3) SQL Server 7.0服务包3(SP3)的 |
7.00.842 7.00.842 | SQL Server 7.0 Service Pack 2 (SP2) SQL Server 7.0服务包2(SP2)的 |
7.00.699 7.00.699 | SQL Server 7.0 Service Pack 1 (SP1) SQL Server 7.0服务包1(SP1) |
7.00.623 7.00.623 | SQL Server 7.0 RTM (Release To Manufacturing) SQL Server 7.0中的RTM(发布到制造) |
How to determine which version of SQL Server 6.5 is running如何确定哪个版本的SQL Server 6.5运行
To determine which version of Microsoft SQL Server 6.5 is running, connect to SQL Server 6.5 by using Isql_w, and then run the following code.要确定哪个版本的微软SQL Server 6.5的运行,连接到SQL Server 6.5使用Isql_w,然后运行下面的代码。 SELECT @@VERSION选择@ @版本
Collapse this table 折叠此表
Version Number版本号 | Service Pack服务包 |
---|---|
6.50.479 6.50.479 | SQL Server 6.5 Service Pack 5a (SP5a) Update SQL Server 6.5的服务包5A条(SP5a)更新 |
6.50.416 6.50.416 | SQL Server 6.5 Service Pack 5a (SP5a)的SQL Server 6.5的Service Pack 5a(另SP5a) |
6.50.415 6.50.415 | SQL Server 6.5 Service Pack 5 (SP5)的SQL Server 6.5的Service Pack 5(SP5)中 |
6.50.281 6.50.281 | SQL Server 6.5 Service Pack 4 (SP4)的SQL Server 6.5的Service Pack 4(SP4)的 |
6.50.258 6.50.258 | SQL Server 6.5 Service Pack 3 (SP3) SQL Server 6.5的服务包3(SP3)的 |
6.50.240 6.50.240 | SQL Server 6.5 Service Pack 2 (SP2) SQL Server 6.5的服务包2(SP2)的 |
6.50.213 6.50.213 | SQL Server 6.5 Service Pack 1 (SP1) SQL Server 6.5的服务包1(SP1) |
6.50.201 6.50.201 | SQL Server 6.5 RTM SQL Server 6.5中的RTM |
How to determine which edition of SQL Server is running如何确定哪个版本的SQL Server运行
If you are not sure about what edition of SQL Server that you are running, the last line of output that is returned by @@VERSION reports the edition to which you have connected.如果您没有运行肯定的是一些什么版本的SQL Server的你,最后一行的输出返回由@ @ VERSION报告的版本连接到您的。 The example that is used in this article is the Standard Edition of SQL Server 2000 on Windows NT 5.0 (Build 2195: Service Pack 2).文章举例来说,这是用于服务器5.0标准版的SQL 2000在Windows NT(生成2195:Service Pack 2中)。Note The build and service pack information that is provided earlier is for the operating system, not for SQL Server. 注意建立和服务包之前提供信息,为作业系统是服务器,而不是为SQL。
Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 2)在Windows NT 5.0标准版(内部版本2195:Service Pack 2中)
- Microsoft SQL Server 2000 Standard Edition微软SQL Server 2000标准版
- Microsoft SQL Server 2000 64-bit Edition微软的SQL Server 2000 64位版
- Microsoft SQL Server 7.0 Standard Edition微软SQL Server 7.0标准版
- Microsoft SQL Server 6.5 Standard Edition微软SQL Server 6.5标准版
- Microsoft SQL Server 2005 Standard Edition微软SQL Server 2005标准版
- Microsoft SQL Server 2005 Express Edition微软SQL Server 2005速成版
- Microsoft SQL Server 2005 Developer Edition微软SQL Server 2005开发版
- Microsoft SQL Server 2005 Enterprise Edition微软SQL Server 2005企业版
- Microsoft SQL Server 2005 Workgroup Edition微软SQL Server 2005工作组版
- Microsoft SQL Server 2008 Developer微软SQL Server 2008开发
- Microsoft SQL Server 2008 Enterprise微软SQL Server 2008企业
- Microsoft SQL Server 2008 Standard微软SQL Server 2008标准
- Microsoft SQL Server 2008 Web微软SQL Server 2008网络
- Microsoft SQL Server 2008 Workgroup微软SQL Server 2008工作组
- Microsoft SQL Server 2008 Express微软SQL Server 2008 Express的