加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

WMI Query Language (WQL)

发布时间:2020-12-12 14:42:26 所属栏目:MsSql教程 来源:网络整理
导读:The WMI Query Language (WQL) is designed to perform queries against the CIM repository to retrieve WMI information. WQL is a subset of ANSI SQL with minor semantic changes to support WMI. Therefore,it is very straightforward to write WQL q

The WMI Query Language (WQL) is designed to perform queries against the CIM repository to retrieve WMI information. WQL is a subset of ANSI SQL with minor semantic changes to support WMI. Therefore,it is very straightforward to write WQL queries.WQL queries can be divided into three types: data,event,and schema.

?

The below two commands are equivalent:

Get-WmiObject –namespace rootMicrosoftSqlServerComputerManagement10 –class ClientNetworkProtocol -filter "ProtocolName=’np’"

Get-WmiObject –namespace rootMicrosoftSqlServerComputerManagement10 -query "Select * From ClientNetworkProtocol Where ProtocolName=’np’"

?

WQL queries can be divided into three types: data,and schema:

Data queries are used to retrieve class instances and data associations.

Event queries are used to subscribe to WMI events.

Schema queries are used to retrieve class definitions and schema associations.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读