WQL
{{Short description|Microsoft's implementation of the CIM Query Language}}
{{Infobox programming language
| paradigm =
| family = Query language
| released =
| designer =
| developer = Microsoft
| typing =
| implementations =
| dialects =
| influenced =
| website =
| latest_release_version =
| latest_release_date =
| turing-complete =
| influenced_by = SQL
| operating_system = Microsoft Windows
| fileformat =
| wikibooks =
}}
Windows Management Instrumentation Query Language (WQL) is Microsoft's implementation of the CIM Query Language (CQL), a query language for the Common Information Model (CIM) standard from the Distributed Management Task Force (DMTF). It is a subset of ANSI standard SQL with minor semantic changes.[http://msdn2.microsoft.com/en-us/library/aa394606.aspx WQL (SQL for WMI)]
WQL is dedicated to WMI and is designed to perform queries against the CIM repository to retrieve information or get event notifications.
Example
As an example, the following WQL query selects all the drives on a computer that have less than 2 MB of free space:[http://msdn2.microsoft.com/en-us/library/ms186146(VS.80).aspx WMI Queries]
SELECT * FROM Win32_LogicalDisk WHERE FreeSpace < 2097152
See also
References
{{Reflist}}
External links
- [http://msdn.microsoft.com/en-us/library/aa392902.aspx Querying with WQL]
- [http://msdn.microsoft.com/en-us/library/aa394605.aspx WQL Operators]
- [http://msdn.microsoft.com/en-us/library/aa394607.aspx WQL-Supported Date Formats]
- [http://msdn.microsoft.com/en-us/library/aa394608.aspx WQL-Supported Time Formats]
- [http://msdn.microsoft.com/en-us/library/aa394606.aspx WQL (SQL for WMI)]
- [http://msdn.microsoft.com/en-us/library/ms180524.aspx Using WQL with the WMI Provider for Server Events]
- [http://msdn.microsoft.com/en-us/library/ms186146(VS.80).aspx WMI Queries]
- [http://www.ravichaganti.com/blog/?p=1845 Learn WMI Query Language using PowerShell]
{{DMTF Standards}}