如何调试 SQL Server 上的查询通知?

发布于 2024-09-25 13:41:12 字数 429 浏览 0 评论 0原文

我正在尝试让查询通知正常工作,但我的应用程序没有收到任何通知。 如何调试查询通知?

我正在使用此处提供的代码 http://www.codeproject.com/KB/database/chatter.aspx。我可以看到正在服务器上创建队列、服务和存储过程,但是 我的 SqlDependency 对象上的 OnChange 事件没有被触发。

我可以以某种方式跟踪通知吗?

I am trying to get query notifications to work, but my application is not receiving any notifications. How do I debug Query Notifications?

I am using the code availble here http://www.codeproject.com/KB/database/chatter.aspx. I can see that the queues, the services and the stored procedures are being created on the server, but the OnChange event on my SqlDependency object is not being fired.

Can I somehow track the notifications?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

同尘 2024-10-02 13:41:12

请参阅神秘通知,故障排除提示部分。

See The Mysterious Notification, the troubleshooting tips section.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文