Microsoft Technologies » SQL Server

ID #1005

How do I determine the exact version number of the SQL Server? And what build and Service Pack does it correspond to?

To determine the version number of the SQL Server running, execute the following query:

SELECT @@VERSION
GO

The response may look similar to:

Microsoft SQL Server 2000 - 8.00.2039 (Intel X86)
or
Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86)

But what does this number convey? How to determine which SQL Server Service Pack is installed?

There is no direct way to get to know what KB-Updates or Service Packs are installed by simply executing a query. One needs to perform a look against a table. You may find exhaustive list here. However, for the sake of brevity, given a below a quick-lookup:

Release/Service PackVersion
SQL Server 7.0 RTM7.00.623
SQL Server 7.0 SP17.00.699
SQL Server 7.0 SP27.00.842
SQL Server 7.0 SP37.00.961
SQL Server 7.0 SP47.00.1063
SQL Server 2000 RTM8.00.194
SQL Server 2000 SP18.00.384
SQL Server 2000 SP28.00.534
SQL Server 2000 SP38.00.760
SQL Server 2000 SP48.00.2039
SQL Server 2005 RTM9.00.1399
SQL Server 2005 SP19.00.2047
SQL Server 2005 SP29.00.3042

The latest SQL Server Service Packs and updates can be found on the Microsoft website here.


Last update: 2007-07-08 14:29
Author: Edujini Labs Pvt Ltd
Revision: 1.0

Print this record Print this record
Send to a friend Send to a friend
Show this as PDF file Show this as PDF file
Export as XML-File Export as XML-File

Please rate this entry:

Average rating: 0 from 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry