查询通知错误
我们在 SQL 查询通知服务方面遇到了这个奇怪的问题。 我们有一个使用 QN 服务运行的主 Web 应用程序,因此当监控数据发生更改时,Web 中的缓存项会收到来自 SQL 的通知。 而且运行良好。 奇怪的是,当其他支持 Web 服务尝试将 QN 订阅注册到 SQL 2005 SP2 时,会出现此错误
“系统异常:SqlDependency.Start 已为命令执行的服务器多次调用,但没有匹配的服务器/用户/数据库 Start() 调用当前命令“
仅当 SQLDependency 中针对特定实例 DB 的 SQL 查询时才会发生此错误。 另一个实例数据库工作得很好。
对于 QN/服务代理问题,找不到太多资源。 希望有类似经历的人可以分享一下他们的知识。
We have this weird issue regarding SQL Query Notification service.
We have a main web application running with QN service so the cache item in the web get notification from SQL when the monitoring data changed. And it runs well.
What is weird is when the other supporting web service tries to register QN subscription into SQL 2005 SP2 and this error occurs
"System Exception: SqlDependency.Start has been called for the server the command is executing against more than once, but there is no matching server/user/database Start() call for current command "
This error only happen when SQL query in SQLDependency against particular instance DB. The other instance DB works just fine.
There are not much resource can be found for QN / service broker issues. Wish anyone has similar experience can share their knowledge.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是 SQL Server 主题领域之一,没有太多的知识专家,包括我自己;-)
我的建议是在 MSDN 的官方 SQL Server Service Broker 论坛上发布您的查询。 以下链接供参考:
http://social.msdn.microsoft.com /Forums/zh-CN/sqlservicebroker/threads
This is one of those SQL Server subject areas where there are not too many knowledge experts available out there, inluding dare I say, myself ;-)
My suggestion would be to post your query on the official SQL Server Service Broker Forum over at MSDN. Link below for reference:
http://social.msdn.microsoft.com/Forums/en-US/sqlservicebroker/threads
这意味着已经为此数据库调用了 Start() 方法。
start 方法有一些限制,您可以在此处底部看到。
this means that the Start() method has already been called for this DB.
the start method has the restrictions you can see here at the bottom.
这不是对该主题的直接回答,但关于 QN/SSB 资源的问题,我的网站上有几篇文章:
我是 SQL Server 团队的前开发人员,我参与了 Service Broker 的工作,并且或多或少地参与了其内部用途,例如查询通知和 SqlDependency、事件通知、dbMail 等
This is not a direct answer on the topic, but on the issue of QN/SSB resources I have a few articles on my site:
I am a former developer with the SQL Server team and I was involved with both Service Broker and, to more or less degree, with its in-house uses like Query Notifications and SqlDependency, Event Notifications, dbMail etc.