Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Untag as favorite
Report for MS SQL Server Version
RagingBull
#1 Posted : Friday, July 01, 2011 11:15:49 AM

Rank: Premium user

Groups: Premium Users, Member
Posts: 1
I have seen many people on here trying to make a report that tells them what edition of MS SQL Server they have as the current report doesnt show this.

Here is what I did to sort this out (with help from EPIServer's post a couple of years ago)

I added the registery key into registry scanner and scanned for SQL 2005 & 2008

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup Edition
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.MSSQLSERVER\Setup Edition
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft SQL Server 10 DisplayName
HKEY_LOCAL_MACHINE\ SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft SQL Server 2005 DisplayName

The user EPIServer then created another object called [0sqlversions2] but I had problems with this and avoided that and have done the following:

Select Top 1000000 tblComputers.Computername, tblComputers.ComputerUnique, tblComputers.Domain, tblRegistry1.Value As Product, tblRegistry.Value As Edition, tblRegistry.Lastchanged From tblComputers Inner Join tblRegistry On tblComputers.Computername = tblRegistry.Computername Inner Join tblRegistry tblRegistry1 On tblComputers.Computername = tblRegistry1.Computername Where tblRegistry.Regkey Like '%sql%' And tblRegistry1.Valuename = 'DisplayName' And tblRegistry.Valuename = 'Edition' And tblRegistry1.Regkey Like '%sql%'



I hope this helps someone.

RagingBull
RogerGA
#2 Posted : Wednesday, January 25, 2012 7:58:22 PM
Rank: Freeware user

Groups: Member
Posts: 7
Location: GA
Wow - this was so helpfull - however the report gives only sql 2008 - i have rechecked all the registry scan and query and can confirm it is as above - what may be wrong ?
Srikanth08
#3 Posted : Friday, February 17, 2012 4:46:27 AM

Rank: Premium user

Groups: Member, Premium Users
Posts: 58
Location: India
Hi,

In ur registry it is showing only SQL 2005 or above also can be shown?we are using SQL 2008 R2..while adding the registry what is the value we need to put?
Regards,
Srikanth08
RogerGA
#4 Posted : Friday, February 17, 2012 6:05:47 PM
Rank: Freeware user

Groups: Member
Posts: 7
Location: GA
Srikant08

Just follow the instructions at the beginning of this thread...it works for sql 2005 , 2008 as well as 2008 R2

If it is not working then i recommend you delete the registry scanning entries you made and redo them - I can vouch and say - it works!
Srikanth08
#5 Posted : Saturday, February 18, 2012 8:49:15 AM

Rank: Premium user

Groups: Member, Premium Users
Posts: 58
Location: India
What is the value i need to add..because it is asking..
Regards,
Srikanth08
Users browsing this topic
Guest
Untag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba