Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

queries in SMS

Status
Not open for further replies.

Patricia

Programmer
Sep 20, 2000
4
CO
Hello

I need to build a query to count the number of computers that have installed a especific software product....

I have tried with select count(*) instruction, but it does not work.

How can i do it?

thansk in advance


Claudia Patricia
 
First, find the software name on your sms database under the table "SoftwareProduct"
Create a new query.
Under Criteria, add a software category. "Software Products" or "Software Files"
insert the Product Name, Version, Whatever.

Run the query, and there ya go!
Of course, this is all for naught if Software Discovery is not enabled.

Good luck!
>:):O>
[sig]<a href=mailto: anongod@hotmail.com> anongod@hotmail.com</a><br><a href= > </a><br>"Drawing on my fine command of language, I said nothing."[/sig]
 
Patricia this is the qeury we use...

select distinct sys.Name, sys.LastLogonUserName, sys.OperatingSystemNameandVersion, sys.ResourceId, sys.ResourceType, swfile.FileName, swfile.FileSize from SMS_G_System_SoftwareFile as swfile inner join SMS_R_System as sys on sys.ResourceId = swfile.ResourceID where swfile.FileName like ##PRM:SMS_G_System_SoftwareFile.FileName## and sys.OperatingSystemNameandVersion not like &quot;%server%&quot; order by sys.Name

Hope this helps!

Mike [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top