SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 How to know if SQL 2008 is R2?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

zeeshan13
Constraint Violating Yak Guru

USA
347 Posts

Posted - 11/04/2010 :  09:59:51  Show Profile  Reply with Quote
Hi All,

I need to know if the SQL Server 2008 is R2 or not? How to findout this information? Please suggest.

Thanks,

Zee

patshaw
Posting Yak Master

177 Posts

Posted - 11/04/2010 :  10:13:46  Show Profile  Reply with Quote
select @@version


If the instance is R2 it will return 'Microsoft SQL Server 2008 R2....', if not it will just return ''Microsoft SQL Server 2008.....'
Go to Top of Page

robvolk
Most Valuable Yak

USA
15671 Posts

Posted - 11/04/2010 :  10:25:54  Show Profile  Visit robvolk's Homepage  Reply with Quote
The version number for R2 is 10.50.xxxx.yy, for 2008 it's 10.00.xxxx.yy. You can also get the version number with:

select serverproperty('ProductVersion')
Go to Top of Page

zeeshan13
Constraint Violating Yak Guru

USA
347 Posts

Posted - 11/04/2010 :  10:30:42  Show Profile  Reply with Quote
This is what I get when I run select @@version

select @@version
Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (X64) Jul 9 2008 14:17:44 Copyright (c) 1988-2008 Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: )

This is what I get when I run select serverproperty('ProductVersion')

select serverproperty('ProductVersion')
10.0.1600.22
Go to Top of Page

zeeshan13
Constraint Violating Yak Guru

USA
347 Posts

Posted - 11/04/2010 :  10:31:39  Show Profile  Reply with Quote
So is it correct to say that this SQL Server 2008 is not R2? Please confirm.

Thanks.
Go to Top of Page

patshaw
Posting Yak Master

177 Posts

Posted - 11/04/2010 :  10:44:08  Show Profile  Reply with Quote
Yes. It is not R2.
Go to Top of Page

zeeshan13
Constraint Violating Yak Guru

USA
347 Posts

Posted - 11/04/2010 :  10:54:48  Show Profile  Reply with Quote
Thanks patshaw for the confirmation. I would also like to know what Service Pack has installed for this SQL Server 2008.
When I run SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition') I got the following.


SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')

10.0.1600.22 RTM Standard Edition (64-bit)


Does it tell about which service pack is inatalled?
Go to Top of Page

zeeshan13
Constraint Violating Yak Guru

USA
347 Posts

Posted - 11/04/2010 :  11:27:49  Show Profile  Reply with Quote
Thank you all for your help.
Go to Top of Page

GilaMonster
Flowing Fount of Yak Knowledge

South Africa
4507 Posts

Posted - 11/04/2010 :  13:26:15  Show Profile  Visit GilaMonster's Homepage  Reply with Quote
RTM = no service packs.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

pow1983
Starting Member

United Kingdom
3 Posts

Posted - 11/04/2010 :  18:26:42  Show Profile  Reply with Quote
Hopefully Microsoft will update the following KB soon, but its quite handy at times:
http://support.microsoft.com/kb/321185

---
Rich

Edited by - pow1983 on 11/04/2010 18:28:00
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000