运行 SQL Service Broker 应用程序的最低用户权限
我想使用SQL Server 2005
服务Broker
来创建更新应用程序。 我希望使用 Service Broker 的主要原因是我需要从数据库中的触发器调用 Web 服务(我发现这不是最佳实践,甚至不推荐)来更新另一个数据库上的数据。
这个想法是使用 Service Broker 应用程序来异步处理对 Web 服务的调用。
我遇到的问题是尝试确定我必须授予用户的权限,以便能够创建队列、消息、合约并实际运行 SSB 应用程序。
是否有任何信息可以说明我应该授予用户什么样的权限才能运行应用程序并设置SSB
?
I would like to use SQL Server 2005
Service Broker
to create an update application.
The main reason I'm looking to use Service Broker is that I need to call a web service from a trigger (which I've found is not a best practice or even recommended) in a database to update data on another database.
The idea is to use a Service Broker application that will handle the call to the web service asynchronously.
The issue I'm running into, is trying to identify the permissions I have to give my user to be able to create the queues, messages, contracts and actually run the SSB application.
Is there any information available as of what kind of permissions should I grand a user to be able to run the application plus set the SSB
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于仅运行的应用程序,您可能只需要队列上的 RECEIVE 权限,但要设置 SB(例如创建服务、队列等)...您可能需要一些 DDL 权限。
参考: http://msdn.microsoft.com/en-us/library/ms187377 .aspx
要开始对话,当前用户必须对命令的 FROM 子句中指定的服务的队列拥有 RECEIVE 权限,并对指定的协定拥有 REFERENCES 权限。
For the app just to operate, you may just need RECEIVE permission on the queue but to setup the SB like creating services, queues, etc... you may need some DDL permissions.
Ref: http://msdn.microsoft.com/en-us/library/ms187377.aspx
To begin a dialog, the current user must have RECEIVE permission on the queue for the service specified in the FROM clause of the command and REFERENCES permission for the contract specified.