从 CLR 存储过程接收 Service Broker
我正在尝试将此 T-SQL 存储过程移至 CLR 过程,但有一个 Service Broker 特定命令我不知道如何实现:
DECLARE @msgBody XML
DECLARE @dlgId uniqueidentifier
;RECEIVE top(1)
@msgBody = message_body,
@dlgId = conversation_handle
FROM dbo.TargetAuditQueue
您知道如何在 .net 上执行相同的操作吗?
[SqlProcedure]
public void AuditParseEventData()
{
// ???
}
谢谢!
I'm trying to move this T-SQL stored procedure to a CLR procedure, but there's a Service Broker specific command that I don't know how to implement:
DECLARE @msgBody XML
DECLARE @dlgId uniqueidentifier
;RECEIVE top(1)
@msgBody = message_body,
@dlgId = conversation_handle
FROM dbo.TargetAuditQueue
Do you know how to the same thing on .net?
[SqlProcedure]
public void AuditParseEventData()
{
// ???
}
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
另请注意,对话句柄与对话 ID 不同。在您的代码中,您似乎混合了这些。
Also, note that conversation handle is something different than conversation ID. In your code you seem to be mixing these.