如何使用ServiceBroker监视sql 2005数据库 [英] How to moniter the sql 2005 database using ServiceBroker

查看:107
本文介绍了如何使用ServiceBroker监视sql 2005数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

这是数据库中断.现在我想使用服务监视sql数据库.我在下面有该代码的语法


Dear All,

This is am interrupt at database. Now i wanna to monitor the sql database using service. I havs syntax of that code below


USE YourDatabaseName;

CREATE QUEUE NameChangeQueue;

CREATE SERVICE NameChangeService ON QUEUE NameChangeQueue ([http://schemas.microsoft.com/SQL/Notifications/PostQueryNotification]);

GRANT SUBSCRIBE QUERY NOTIFICATIONS TO YourUserName;

ALTER DATABASE YourDatabaseName SET ENABLE_BROKER;




在上面的代码中,我不知道什么是 YourUserName .任何人对此都有想法,请发布您的宝贵命令.欢迎所有回复.....

谢谢&问候

Dhinesh Kumar.V




In the above code i dont know what is YourUserName. Any one have idea about this one please post your valuable commands. All Replies are Welcome.....

Thanks & Regards

Dhinesh Kumar.V

推荐答案

应该是您正在使用的数据库主体.
That should be the database principal you are using.


这篇关于如何使用ServiceBroker监视sql 2005数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆