Finding stored procedures having execute permission

后端 未结 5 1386
长发绾君心
长发绾君心 2021-01-02 02:31

I am using SQL Server 2008 R2. I need to list out all the stored procedures that a database user (MYUSER) has execute permission.

Also, I need to list out which ar

5条回答
  •  伪装坚强ぢ
    2021-01-02 03:01

    HAS_PERMS_BY_NAME, as used in the context of the script provided in the first answer, will provide the desired result only if you are connected as "MYUSER" since this function

    "Evaluates the effective permission of the current user"

提交回复
热议问题