Identifying your SQL Server version and edition

Yesterday I was trying to install Microsoft SQL Server 2005 Developer Edition on top of a virtual image that is installed with Microsoft Visual Studio 2008 Professional Edition. Unfortunately, the installation fails unexpectedly. A further investigations on the instance of Microsoft SQL Server 2005 Express Edition (as part of the Visual Studio installation items) reveals that the Sqlservr.exe version is 2005.90.3042 (SQL Server 2005 Service Pack 2). I think would be worthwhile to blog on ways to identify your SQL Server version and edition using Transact-SQL.

How to determine which version of SQL Server 2005 is running

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:

SELECT  SERVERPROPERTY(‘productversion’), SERVERPROPERTY (‘productlevel’), SERVERPROPERTY (‘edition’)

The results are:
. The product version (for example, "9.00.1399.06").
. The product level (for example, "RTM").
. The edition (for example, "Enterprise Edition").

The following lists the Sqlservr.exe version number:

RTM- 2005.90.1399
SQL Server 2005 Service Pack 1- 2005.90.2047
SQL Server 2005 Service Pack 2- 2005.90.3042

How to determine which version of SQL Server 2000 is running

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:

SELECT  SERVERPROPERTY(‘productversion’), SERVERPROPERTY (‘productlevel’), SERVERPROPERTY (‘edition’)

The results are:
. The product version (for example, 8.00.534).
. The product level (for example, "RTM" or "SP2").
. The edition (for example, "Standard Edition").

The following lists the Sqlservr.exe version number:

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: