You can use WMI to monitor server events.This provIDer manages a WMI namespace for each instance of sql Server 2008. The name of the namespace is in the format
root\Microsoft\sqlServer\ServerEvents\instance name.To monitor a default instance on a remote computer — for example,DEMOPC — you can use a named
space,\\DEMOPC\root\Microsoft\sqlServer\ServerEvents\MSsqlSERVER.
To check whether the Service brokers are enabled on a sql Server instance,and to get the Service broker instance GUID in each database:
SELECT name,is_broker_enabled,service_broker_guID FROM sys.databases
To enable Service broker for a database — for example,the msdb database — use the ALTER DATABASE statement:
ALTER DATABASE msdb SET ENABLE_broKER
总结以上是内存溢出为你收集整理的WMI Provider for Server Events全部内容,希望文章能够帮你解决WMI Provider for Server Events所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)