|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Yesterday @ 10:41 PM
Points: 310,
Visits: 649
|
|
When I execute SELECT @@version command then I get following answer:
Microsoft SQL Server 2008 (SP1) - 10.0.2714.0 (X64) May 14 2009 16:08:52 Copyright (c) 1988-2008 Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.0 (Build 6002: Service Pack 2) (VM)
Microsoft SQL Server 2005 - 9.00.3042.00 (X64) Feb 10 2007 00:59:02 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2)
Microsoft SQL Server 2000 - 8.00.2055 (Intel X86) Dec 16 2008 19:46:53 Copyright (c) 1988-2003 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
Once this says SP1 and at another place this says service pack 2. According to me first is for sql server and another is for Windows OS. Is my understanding correct?
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 3:17 PM
Points: 5,270,
Visits: 11,212
|
|
yes
---------------------------------------------------------------------
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Wednesday, April 17, 2013 3:39 AM
Points: 1,768,
Visits: 1,312
|
|
You can also execute following command to check Database version
select serverproperty ('ProductVersion')
--------------------------------------------------- "Thare are only 10 types of people in the world: Those who understand binary, and those who don't."
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Wednesday, April 17, 2013 3:39 AM
Points: 1,768,
Visits: 1,312
|
|
You can also execute following command to check Database version
select serverproperty ('ProductVersion')
--------------------------------------------------- "Thare are only 10 types of people in the world: Those who understand binary, and those who don't."
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Wednesday, April 17, 2013 3:39 AM
Points: 1,768,
Visits: 1,312
|
|
You can also execute following command to check Database version
select serverproperty ('ProductVersion')
--------------------------------------------------- "Thare are only 10 types of people in the world: Those who understand binary, and those who don't."
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Friday, February 22, 2013 9:30 PM
Points: 912,
Visits: 198
|
|
If you want to find out version information, you can use @@Version function. However, in SQL Server 2005, you won’t get the service pack level of the SQL Server.
If you run SELECT @@VERSION in SQL Server 2005, you will get following output.
Microsoft SQL Server 2005 - 9.00.4207.00 (X64) Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2)
PN: here Service Pack 2 means service pack of the operating system, not the service pack of the SQL Server. To find out the service pack level in SQL Server 2005, you need to run following T-SQL.
SELECT SERVERPROPERTY('ProductLevel') ServicePack
In SQL Server 2008 this is what you get for SELECT @@VERSION.
Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64) Copyright (c) 1988-2008 Microsoft Corporation Developer Edition (64-bit) on Windows NT 5.2 <X64> (Build 3790: Service Pack 2)
In this you can see that you will get the Service pack level from the @@VERSION.
Apart from above commands, following stored procedures also give you the server information.
EXEC master..xp_msver
EXEC sp_server_info
My Blog: http://dineshasanka.spaces.live.com/
|
|
|
|