jnelson993
Posts: 731
Score: 91 Joined: 2/18/2005 From: Minneapolis, MN Status: offline
|
WQL is really only like SQL in that they both end in QL. WQL is a query language for WMI. So when you create an SMS/SCCM query or a collection query, you're really writing code to pull data from WMI. In addition to all the SMS data being in SQL, it can also be gotten at using WMI. The thought being there that there is a very limited number of things you can do with WQL compared to SQL so that the SMS/SCCM server is LESS likely to be tipped over by a poorly written query. You can easily write bad SQL and SQL will run till it barfs trying to feed that data to you. WQL will just look at you in disgust and tell you to go pound sand. There are a lot of things that WQL as implemented in SMS/SCCM can't do, like string concatenation, substrings, directly joining system and user/usergroup data (although Sherry claims she can...I've had no luck). There's no counting, no real aggregate functions like MAX(), basically, nothing that takes extra processing by SMS/SCCM. It's a beach trying to do the same in WQL as you can in SQL.
_____________________________
Number2 (John Nelson) MyITForum - Blog MyITForum - Forum Posts
|