2010年4月22日 星期四

get the version information of SQL server

Microsoft support has a web page for this.

In short,
1. run 'select @@version'.

Version NumberService Pack
6.50.479SQL Server 6.5 Service Pack 5a (SP5a) Update
6.50.416SQL Server 6.5 Service Pack 5a (SP5a)
6.50.415SQL Server 6.5 Service Pack 5 (SP5)
6.50.281SQL Server 6.5 Service Pack 4 (SP4)
6.50.258SQL Server 6.5 Service Pack 3 (SP3)
6.50.240SQL Server 6.5 Service Pack 2 (SP2)
6.50.213SQL Server 6.5 Service Pack 1 (SP1)
6.50.201SQL Server 6.5 RTM

Version NumberService Pack
7.00.1063SQL Server 7.0 Service Pack 4 (SP4)
7.00.961SQL Server 7.0 Service Pack 3 (SP3)
7.00.842SQL Server 7.0 Service Pack 2 (SP2)
7.00.699SQL Server 7.0 Service Pack 1 (SP1)
7.00.623SQL Server 7.0 RTM (Release To Manufacturing)

if the version number string is started with "8.", "9." or later, then run
"SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')"
The following results are returned:
  • The product version (for example, 8.00.534)
  • The product level (for example, "RTM" or "SP2")
  • The edition (for example, "Standard Edition"). For example, the results resemble the following:

    8.00.534 SP2 Standard Edition
ReleaseSqlservr.exe
RTM2000.80.194.0
SQL Server 2000 SP12000.80.384.0
SQL Server 2000 SP22000.80.534.0
SQL Server 2000 SP32000.80.760.0
SQL Server 2000 SP3a2000.80.760.0
SQL Server 2000 SP42000.8.00.2039


9.00.1399.06RTMEnterprise Edition
The following table lists the Sqlservr.exe version number.

ReleaseSqlservr.exe
RTM2005.90.1399
SQL Server 2005 Service Pack 12005.90.2047
SQL Server 2005 Service Pack 22005.90.3042
SQL Server 2005 Service Pack 32005.90.4035

10.0.1600.22RTMEnterprise Edition
The following table lists the Sqlservr.exe version number.
Collapse this tableExpand this table
ReleaseSqlservr.exe
RTM2007.100.1600.0
SQL Server 2008 Service Pack 12007.100.2531.0







沒有留言: