This topic describes how to identify the current SQL Server version number and the corresponding product level or service package (SP) level. It also describes how to identify the specific version of SQL Server 2000 or SQL Server 7.0 used.
How to determine the version of SQL Server 2005 running
To determine the version of the running SQL Server 2005, use SQL Server Management Studio to connect to SQL Server 2005 and run the following statements:
Select serverproperty ('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('version ')
The running result is as follows: • Product Version (for example, "9.00.1399.06 ").
• Product level (for example, "RTM ").
• Version (for example, "Enterprise Edition ")
For example, the running result may be similar to the following: 9.00.1399.06 RTM Enterprise Edition
The following table lists the version numbers of Sqlservr.exe: the release version of Sqlservr.exe.
RTM 2005.90.1399
SQL Server 2005 Service Pack 1 2005.90.2047
How to determine the version of SQL Server 2000 running
To determine the version of SQL Server 2000 that is running, connect to SQL Server 2000 using the query analyzer and run the following code:
Select serverproperty ('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('version ')
The running result is as follows: • Product Version (for example, 8.00.534 ).
• Product level (for example, "RTM" or "SP2 ").
• Version (for example, "Standard Edition "). For example, the running result may be similar to the following:
8.00.534 RTM Standard Edition
The following table lists the version numbers of Sqlservr.exe: the release version of Sqlservr.exe.
RTM 2000.80.194.0
SQL Server 2000 SP1 2000.80.384.0
SQL Server 2000 SP2 2000.80.534.0
SQL Server 2000 SP3 2000.80.760.0
SQL Server 2000 SP3a 2000.80.760.0
SQL Server 2000 SP4 2000.8.00.2039
How to determine the version of SQL Server 7.0 running
To determine the version of SQL Server 7.0 that is running, connect to SQL Server 7.0 using the query analyzer and run the following code:
SELECT @ VERSION
The running result is similar to the following:
Microsoft SQL Server 7.00-7.00.623 (Intel X86) Nov 27 1998 22: 20: 07 Copyright (c) 1988-1998 Microsoft configurationdesktop Edition on Windows NT 5.1 (Build 2600 :)
Note: In this example, the version number is 7.00.623.
Use the version number in the following table to identify the product level or Service Pack level: Version Number Service Pack
7.00.1063 SQL Server 7.0 Service Pack 4 (SP4)
7.00.961 SQL Server 7.0 Service Pack 3 (SP3)
7.00.842 SQL Server 7.0 Service Pack 2 (SP2)
7.00.699 SQL Server 7.0 Service Pack 1 (SP1)
7.00.623 SQL Server 7.0 RTM (Release To Manufacturing)
If the VERSION number of the @ VERSION Report is not listed in this table, the running SQL Server installs the patch or security update internal VERSION. For example, if the @ VERSION Report VERSION is 7.00.859, you are running SQL Server 7.0 SP2 with the patch installed. The version number of each new version of Sqlservr.exe executable file is increased. For more information, see the Readme.txt file of the patch or security update program.
How to determine the version of SQL Server 6.5 running
To determine the version of SQL Server 6.5 that is running, use Isql_w to connect to SQL Server 6.5 and run the following code:
SELECT @ VERSION
Use the version number in the following table to identify the product level or Service Pack level: Version Number Service Pack
6.50.479 SQL Server 6.5 Service Pack 5a (SP5a) Update
6.50.416 SQL Server 6.5 Service Pack 5a (SP5a)
6.50.415 SQL Server 6.5 Service Pack 5 (SP5)
6.50.281 SQL Server 6.5 Service Pack 4 (SP4)
6.50.258 SQL Server 6.5 Service Pack 3 (SP3)
6.50.240 SQL Server 6.5 Service Pack 2 (SP2)
6.50.213 SQL Server 6.5 Service Pack 1 (SP1)
6.50.201 SQL Server 6.5 RTM
If the VERSION number of the @ VERSION Report is not listed in this table, the running SQL Server installs the patch or security update internal VERSION. The version number of each new version of Sqlservr.exe executable file is increased. For more information, see the Readme.txt file of the patch or security update program.
How to determine the version of the running SQL Server
If you cannot determine the VERSION of the running SQL Server, the last line in the output returned by @ VERSION will report the VERSION you are connected. The example used in this article is SQL Server 5.0 Standard Edition installed on Windows NT 2195 (internal version 2000: Service Pack 2. Service Pack 2)
Note: The earlier version information and Service Pack information are applicable to the operating system and SQL Server.
Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 2)