Permissions require to GRANT EXECUTE

不想你离开。 提交于 2019-12-11 02:27:16

问题


I am creating a group for users who will need to be able to create and delete procs but also grant execute permissions to other users.

GRANT CREATE PROCEDURE TO [xxx\xxx]
GRANT ALTER ON SCHEMA :: dbo TO [xxx\xxx]

However what permissions to I need to grant the group such that they can grant execute permissions to an object?

Thanks


回答1:


According to the documentation, this is supposed to work:

GRANT EXECUTE ON SCHEMA::dbo TO [xxx\xxx] WITH GRANT OPTION;

However in my minimal testing it required:

GRANT CONTROL ON SCHEMA::dbo TO [xxx\xxx];

I strongly recommend you don't follow the advice in the comments, which suggest it might be a good idea to "grant ALL permissions" or use db_owner or sysadmin. Granting someone more permissions than they need is just a lazy way to ensure you will get fired later. I recommend anyone advocating this blind giving of keys to the castle to review the principle of least privilege.



来源:https://stackoverflow.com/questions/17951438/permissions-require-to-grant-execute

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!