Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out which Service Pack is installed on SQL Server?

Tags:

sql-server

How can I find out which Service Pack is installed on my copy of SQL Server?

like image 922
Stefan Haubold Avatar asked Aug 28 '08 07:08

Stefan Haubold


2 Answers

From TechNet: Determining which version and edition of SQL Server Database Engine is running

-- SQL Server 2000/2005
SELECT  SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')

-- SQL Server 6.5/7.0
SELECT @@VERSION
like image 91
Sergio Acosta Avatar answered Nov 09 '22 16:11

Sergio Acosta


Select @@Version

Ex: My machine has the following one installed.

Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (Intel X86) Apr 2 2010 15:53:02 Copyright (c) Microsoft Corporation Enterprise Edition on Windows NT 6.1 (Build 7601: Service Pack 1)

like image 29
Amarnath Avatar answered Nov 09 '22 18:11

Amarnath