查询SQL Server版本号
一、查看SQL Server 2005版本号
SELECT @@VERSION
显示以下信息:
Microsoft SQL Server 2005 - 9.00.3042.00 (Intel X86) Feb 9 2007 22:47:07 Copyright (c) 1988-2005 Microsoft Corporation Express Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
SELECT SERVERPROPERTY('productversion'),SERVERPROPERTY('productlevel'),SERVERPROPERTY('edition')
显示以下信息:
9.00.3042.00 SP2 Express Edition
下表是SQL Server 2005 版本号信息:
2005.90.1399 RTM(Release to Manufacturing)
2005.90.2047 SQL Server 2005 SP1
2005.90.3042 SQL Server 2005 SP2
二、查看SQL Server 2000版本号
SELECT @@VERSION
显示以下信息:
Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3 2005 23:18:38 Copyright (c) 1988-2003 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
SELECT SERVERPROPERTY('productversion'),SERVERPROPERTY('productlevel'),SERVERPROPERTY('edition')
显示以下信息:
8.00.2039 SP4 Enterprise Edition
下表是SQL Server 2000各个版本信息:
2000.80.194.0 RTM(Release to Manufacturing)
2000.80.384.0 SQL Server 2000 SP1
2000.80.534.0 SQL Server 2000 SP2
2000.80.760.0 SQL Server 2000 SP3
2000.8.00.2039 SQL Server 2000 SP4