To show the stored procedure permission details in SQL Server:
select U. name, O. name, permission_name from sys . database_permissions
join sys . sysusers U on grantee_principal_id = uid
join sys . sysobjects O on major_id = id
where O. name like 'sp_name' -- stored procedure name
order by U. name
No comments:
Post a Comment
Comments Welcome