具有批量插入功能的存储过程的权限
我想创建一个存储过程来执行批量插入,以便我授予存储过程访问权限的用户可以在没有任何其他权限的情况下运行它。
有什么方法可以向存储过程授予“管理批量操作”,这样我就不必向用户授予服务器范围的批量操作权限?
还有其他解决办法吗?
我正在使用 SQL Server 2005。
I want to create a stored procedure to perform a bulk insert so a user I grant access to the stored procedure can run it without any other permissions.
Is there any way I can grant "ADMINISTER BULK OPERATIONS" to the stored procedure so I don't have to grant server wide bulk op permissions to the user?
Is there any other solution?
I am using SQL Server 2005.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以修改存储过程以使用 "EXECUTE AS" 来获取它在不同的上下文下运行。
You could modify the stored procedure to use "EXECUTE AS" to have it run under a different context.