创建服务代理合同权限

时间:2013-05-10 13:01:51

标签: sql sql-server nservicebus service-broker

我正在尝试在sql中创建一个契约,用于将消息从sql推送到nservicebus(msmq)队列,尽管我在执行此代码时收到以下错误消息!任何想法为什么我得到这个? 谢谢, 詹姆斯

CREATE CONTRACT [NServiceBusSendMessageContract] 
(
    [NServiceBusSendMessage] SENT BY ANY 
)

Msg 15151, Level 16, State 1, Line 1
Cannot find the message type 'NServiceBusSendMessage', because it does not exist or you do not have permission.

1 个答案:

答案 0 :(得分:1)

你做过这个吗?

CREATE MESSAGE TYPE [NServiceBusSendMessage]
    VALIDATION = WELL_FORMED_XML