View SQL Server 2005 version number
Select SERVERPROPERTY (' ProductVersion '), serverproperty (' ProductLevel '), Serverproperty (' edition ')
The following is the SQL Server 2005 version number query results information:
First, view the SQL Server 2005 version number
Select SERVERPROPERTY (' ProductVersion '), serverproperty (' ProductLevel '), Serverproperty (' edition ')
The following is the SQL Server 2005 version number query results information:
Version Level edition 9.00.3042.00 SP2 Enterprise Edition
The following table is the version number information for SQL Server 2005:
SQL Server 2005 version number SQL Server 2005 version description
2005.90.1399 RTM 2005.90.2047 SQL Server SP1 2005.90.3042 SQL Server Manufacturing
Second, view SQL Server 2000 version number
Select SERVERPROPERTY (' ProductVersion '), serverproperty (' ProductLevel '), Serverproperty (' edition ')
The following is the SQL Server 2000 version number query results information:
Version Level edition 8.00.2039 SP4 Enterprise Edition
The following table is the version number information for SQL Server 2000:
SQL Server 2000 version number SQL Server 2000 version description
2000.80.194.0 RTM (Release to manufacturing) 2000.80.384.0 SQL Server SP1 2000.80.534.0 SQL Server SP2 60.0 SQL Server SP3 2000.80.760.0 SQL Server Watts SP3a 2000.8.00.2039 SQL Server? SP4
Common methods for viewing SQL Server version numbers: @ @version
SELECT @ @version Microsoft SQL Server 2000-8.00.2039 (Intel X86) May 3 23:18:38 Copyright (c) 1988-2003 Microsoft C Orporation Enterprise Edition on Windows NT 5.2 (build 3790:service Pack 1) Microsoft SQL Server 2005-9.00.3042.00 (Int El X86) Feb 9 2007 22:47:07 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790 : Service Pack 2)
As you can see, the @ @version version number results also contain the OS version information. At the same time @ @version is common to versions above SQL Server 6.5.