SQL Server Broker服务目标传输队列问题

发布于 2024-11-29 07:54:10 字数 1396 浏览 4 评论 0原文

我已经跨两个不同的实例实现了两个 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

  1. 我的队列保留设置为关闭

  2. 发送者队列和 sys.TransmissionQueue

  3. 目标队列,但目标sys.transmissionqueue包含我发送的5000条消息

  4. @Target DB 中数据插入锁定。 “当我使用nolock选择时,会出现5000条记录

  5. Profiler显示

@发件人

代理:对话 STARTED_OUTBOUND

代理:对话 CONVERSING

代理:消息分类

代理:远程消息确认

代理:对话组

@接收者

代理:对话 DISCONNECTED_OUTBOUND

代理:对话组

代理:消息分类

代理:远程消息确认

代理:消息无法送达 此消息已被删除,因为无法按时分派。状态:1

  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

  1. My queue is RETENTION set to off.

  2. Sender Queue and sys.TransmissionQueue are empty.

  3. Target Queue is empty ,but Target sys.transmissionqueue contains the 5000 messages I sent.

  4. The table, data is inserted in @Target DB is locked. "When I select with nolock the 5000 records appears"

  5. 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

  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 技术交流群。

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

发布评论

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

评论(1

剩一世无双 2024-12-06 07:54:10

听起来您的目标处理正在接收消息,用 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?

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