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 are the stored procedures that the user does NOT have EXECUTE permission – but can read the script of the stored procedure
Is there any SQL statement or helper function for these purpose?
REFERENCE:
Use
HAS_PERMS_BY_NAME: