SQL Query to prompt computer manufacturer and list computers
Hi, please help me make a query which will prompt for the computer manufacturer (acer, ibm, etc) then list the computers under that manufacturer. thanks
January 28th, 2010 1:58am

Hi Johan,You can use this one:select distinct SMS_R_System.Name, SMS_G_System_COMPUTER_SYSTEM.Manufacturer, SMS_G_System_COMPUTER_SYSTEM.Model from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Manufacturer like ##PRM:SMS_G_System_COMPUTER_SYSTEM.Manufacturer##You can use wildcards in the prompt e.g. Len% for all manufacturers starting with LenKent Agerlund | http://scug.dk/members/Agerlund/default.aspx | The Danish community for System Center products
Free Windows Admin Tool Kit Click here and download it now
January 28th, 2010 9:45am

i copied and paste the statement on sql reports and its giving me a syntax error.
January 28th, 2010 6:17pm

The query is a WQL query that should be used in your query node to work.http://www.sccm-tools.com http://sms-hints-tricks.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
March 2nd, 2010 3:51am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics