Jump to content


  • 0
Fray

Inventory PC installed with SQL Server does not report the version of sql

Question

Hello friends.

I'm generating a query for all computers that have SQL installed, but the result is not as expected, I want the SQL and see, someone can help me with any questions.


I want the installed version, not all components as shown in the image ..

post-19526-0-72156100-1363896513_thumb.png

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

hi

 

 

 

SELECT distinct dbo.v_R_System.Name0, dbo.v_R_System.AD_Site_Name0 as "Site",dbo.v_GS_OPERATING_SYSTEM.Caption0 AS [Operating System],
arp.DisplayName0 as "Software",arp.Version0
FROM dbo.v_Add_Remove_Programs AS arp INNER JOIN
dbo.v_R_System ON arp.ResourceID = dbo.v_R_System.ResourceID INNER JOIN
dbo.v_RA_System_SMSInstalledSites AS ASSG ON dbo.v_R_System.ResourceID = ASSG.ResourceID INNER JOIN
dbo.v_GS_OPERATING_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_OPERATING_SYSTEM.ResourceID
WHERE (arp.DisplayName0 LIKE 'Microsoft SQL Server 2005%')OR
(arp.DisplayName0 LIKE 'Microsoft SQL Server 2008%')OR
(arp.DisplayName0 LIKE 'Microsoft SQL Server 2012%') ORDER BY dbo.v_R_System.Name0, arp.DisplayName0, arp.Version0

post-19526-0-47235800-1364315634_thumb.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.