Question : How do i use T-SQL to list all the users and groups who have been assigned permissions to a specific stored procedure?

How do i use T-SQL to list all the users and groups who have been assigned permissions to a specific stored procedure?

Answer : How do i use T-SQL to list all the users and groups who have been assigned permissions to a specific stored procedure?

try the below
1:
2:
3:
4:
Select object_name(major_id), *
from sys.database_permissions a
inner join sys.database_principals b on b.principal_id = a.grantee_principal_id
where object_name(major_id) = 'yourspname'
Random Solutions  
 
programming4us programming4us