jnelson993
Posts: 959
Score: 132 Joined: 2/18/2005 From: Minneapolis, MN Status: offline
|
quote:
ORIGINAL: shadster Hi everyone, I am trying to build a collection for one specific model in our envionment... and my sql is terrible, but i am slowly learning it (though not fast enough for the boss) i keep getting syntax errors... the model is a dell Optiplex GX260... an older machine that doesn't like one of our packages... soooo i need to creat a seperate one for this specific model... like i said i just can't get the syntax right... i am trying to use: v_GS_COMPUTER_SYSTEM.Model0, WHERE v_GS_COMPUTER_SYSTEM.Model0 LIKE '%260' i think this would be a better way as opposed to using something like a certian proc or chipset... as not all of them have the same processor... or some other distinguishing feature. any help would be greatly appreciated... and thanks in advance shadster So...which are you trying to create, a collection query, SMS query, or Web Report query? Cuz if you're trying to use v_GS_Computer_System for a collection or an SMS query, it's not going to work. v_GS_Computer_System is a view name for SQL and that's for web reports. If you want to make a collection or query, you'll need to use SMS_G_System_Computer_System. Collection/SMS Query WQL SELECT SMS_R_System.ResourceID, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client 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.Model = "OptiPlex GX260" Equivalent Web Report SQL SELECT sys.ResourceID, sys.ResourceType, sys.Name0, sys.SMS_Unique_Identifier0, sys.Resource_Domain_OR_Workgr0, sys.Client0 FROM v_R_System AS sys INNER JOIN v_GS_Computer_System AS cs ON cs.ResourceID = sys.ResourceId WHERE cs.Model0 = 'OptiPlex GX260'
_____________________________
Number2 (John Nelson) MyITForum - Blog MyITForum - Forum Posts
|