How to Determine the Version and Service Pack. | |||||||||||||||
By: Dinesh Priyankara | |||||||||||||||
Recently one of my co-workers came and asked me the correct version of SQL Server that we have installed in our company and the service pack. So, I asked him to run the SELECT @@VERSION in the Query Analyzer and see the result to get the version and service pack installed. He ran the query and got the result but still he could not get the correct service pack installed but version. minor and revision) given by the result, the correct service pack installed cannot be determined. the service pack and decided to share this with you all as you might unaware with these facts. result. @@VERSION Microsoft SQL Server 2000 - 8.00.760 (Intel X86) 2002 14:22:05 Microsoft Corporation Windows NT 5.0 (Build 2195: Service Pack 2) gives you the version (as 8.00.760) and the edition of SQL Server installed but service pack. The following table shows the relationship between version and product level (SP).
Now you can see the version 8.00.760 represents the service pack 3. SERVERPROPERTY(property name). SERVERPROPERTY('ProductVersion') 8.00.760 SELECT SERVERPROPERTY('ProductLevel') SP3 **See BOL for other properties. xp_msver with option or without option. ProductVersion Index Name Internal_Value Character_Value ---------------------------------------------------------------------- 2 ProductVersion 524288 8.00.760 If you execute xp_msver without specifing a property, you will get all information about version. about this article.
|
2007-10-13
2 reads