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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report not limiting to collection

Status
Not open for further replies.

billybarty

Technical User
May 3, 2002
251
CA
I have a report with statements that query software that we have listed in add remove programs and it has a prompt in it for which collection we want it run against. I have a collection for all our internal Windows servers and that is what I am running the report against.
What is happening is the report data I am getting is not limited to the collection. I am getting the counts of software installed on all the OS's from all our SMS clients.
Here is an example of the statement, I have only posted one of the statements for one of the products and followed by that is the prompt statement. Any help is appreciated.

SELECT DisplayName0 as 'McAfee VirusScan Enterprise', Count(ProdID0) AS 'Count', Version0
FROM v_GS_ADD_REMOVE_PROGRAMS
WHERE DisplayName0 like "McAfee VirusScan Enterprise"
GROUP BY DisplayName0, Version0
ORDER BY Version0
Prompt Statement
begin
if (@__filterwildcard = '')
select CollectionID, Name from v_Collection order by Name
else
select CollectionID, Name from v_Collection
WHERE CollectionID like @__filterwildcard
order by Name
end
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top