Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
EPiServer
Engaged Sweeper
Hi Guys

I whant to scan my servers for SQL Server Editions and SQL Service packs. any one have a simpel method.
2 REPLIES 2
EPiServer
Engaged Sweeper
Thank you!

But I used another solution. I added register key scan 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


And then I used this query and just changed the value for dbo.[0sqlversions2].Value and dbo.tblRegistry.Value for getting Standard or Exopress edition and SQL 2005:

SELECT TOP (100) PERCENT dbo.[0sqlversions2].Computername AS [Server Name], dbo.tblComputers.Domain, dbo.tblRegistry.Value AS [SQL Version],
dbo.[0sqlversions2].Value AS [SQL Edition], dbo.tblComputers.Lastseen
FROM dbo.[0sqlversions2] INNER JOIN
dbo.tblRegistry ON dbo.[0sqlversions2].Computername = dbo.tblRegistry.Computername INNER JOIN
dbo.tblComputers ON dbo.tblRegistry.Computername = dbo.tblComputers.Computername
WHERE (dbo.tblRegistry.Valuename = 'DisplayName') AND (dbo.[0sqlversions2].Valuename = 'Edition')
GROUP BY dbo.[0sqlversions2].Value, dbo.tblRegistry.Value, dbo.[0sqlversions2].Computername, dbo.tblComputers.Domain, dbo.tblComputers.Lastseen
HAVING (dbo.[0sqlversions2].Value = 'Workgroup Edition') AND (dbo.tblRegistry.Value = 'Microsoft SQL Server 2008')
Hemoco
Lansweeper Alumni
I'm afraid that you need to scan for the filepath's of the different versions and compare the version numbers.

Archive

This board contains archived posts from the retired Lansweeper Forum and Insiders Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now