【发布时间】:2013-02-19 10:44:17
【问题描述】:
我创建了这个 Service Broker 应用程序:http://pastebin.com/M1jZg2Pt
我想运行存储过程 spInsertLogLine 并让记录在表 log_line 中结束。
我愿意
exec [broker].dbo.spSendLogLine
@device_id = 'devid1',
@application_name = 'appname1',
@application_user_name = 'usrnme',
@log_line_dt = 1, --@log_line_dt = GETDATE(), fails
@log_line_message = 'this is the log line'
我最终在队列 qReceiveLogLine 中收到一条状态为 3 的消息,而队列 qInsertLogLine 或表 log_line 中没有任何内容。
我是 Service Broker 的新手。我做错了什么?
【问题讨论】:
标签: sql-server-2008 message-queue service-broker