SQL Server Broker服务目标传输队列问题
我已经跨两个不同的实例实现了两个 SSB。它们是基于异步触发器的数据推送模式。
我正在使用 SQL Server Enterprise 2008 R2,版本信息如下所示
My SQL 版本是 Microsoft SQL Server Management Studio 10.0.4064.0 Microsoft 分析服务客户端工具 10.0.4064.0 Microsoft 数据访问组件 (MDAC) 6.1.7601.17514 微软 MSXML 3.0 4.0 5.0 6.0 微软 Internet Explorer 9.0.8112.16421 微软.NET框架2.0.50727.5446 操作系统 6.1.7601
我的队列保留设置为关闭。
发送者队列和 sys.TransmissionQueue 为空。
目标队列为空,但目标sys.transmissionqueue包含我发送的5000条消息 。
@Target DB 中表、数据插入已锁定。 “当我使用nolock选择时,会出现5000条记录”
Profiler显示
@发件人
代理:对话 STARTED_OUTBOUND
代理:对话 CONVERSING
代理:消息分类
代理:远程消息确认
代理:对话组
@接收者
代理:对话 DISCONNECTED_OUTBOUND
代理:对话组
代理:消息分类
代理:远程消息确认
代理:消息无法送达 此消息已被删除,因为无法按时分派。状态:1
- SSBDIAGNOSE 显示无错误。
我已经使用Rusanu的博客条目来解决问题,但我认为我的情况有所不同!
希望有人能帮忙:)
I've implemented two SSB across two different instances. They are data push pattern based on asynchronous triggers.
I am using SQL Server Enterprise 2008 R2, version info is found below
My SQL Version is Microsoft SQL Server Management Studio 10.0.4064.0
Microsoft Analysis Services Client Tools 10.0.4064.0
Microsoft Data Access Components (MDAC) 6.1.7601.17514
Microsoft MSXML 3.0 4.0 5.0 6.0
Microsoft Internet Explorer 9.0.8112.16421
Microsoft .NET Framework 2.0.50727.5446
Operating System 6.1.7601
My queue is RETENTION set to off.
Sender Queue and sys.TransmissionQueue are empty.
Target Queue is empty ,but Target sys.transmissionqueue contains the 5000 messages I sent.
The table, data is inserted in @Target DB is locked. "When I select with nolock the 5000 records appears"
Profiler shows
@Sender
Broker:Conversation STARTED_OUTBOUND
Broker:Conversation CONVERSING
Broker:Message Classify
Broker:Remote Message Acknowledgement
Broker:Conversation Group
@Reciever
Broker:Conversation DISCONNECTED_OUTBOUND
Broker:Conversation Group
Broker:Message Classify
Broker:Remote Message Acknowledgement
Broker:Message Undeliverable This message was dropped because it could not be dispatched on time. State: 1
- SSBDIAGNOSE shows no error.
I've used Rusanu's blog entry to troubleshoot the problem ,but I think my situation is different!
Hope anyone could help :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您的目标处理正在接收消息,用 EndDialog 进行响应,但没有提交事务。这可以解释您所描述的症状(数据已插入但已锁定,目标传输队列有 5k 消息未发送)。您能否确认目标处理正在正确提交并结束事务?
Sounds like your target processing is receving messages, responding with and EndDialog, but not committing the transaction. This would explain the symptoms you describe (data is inserted but locked, target transmission queue has 5k messages not being sent). Can you confirm that the target processing is properly committing and ending the transactions?