To know the permissions on the procedure.
---To know the permissions on the procedure.
SELECT PERM.[Type],PERM.Permission_name
FROM SYS.DATABASE_PERMISSIONS as PERM JOIN SYS.OBJECTS AS SO
ON PERM.MAJOR_ID=SO.[OBJECT_ID]
WHERE SO.[Name] like 'ProcedureName'
SELECT PERM.[Type],PERM.Permission_name
FROM SYS.DATABASE_PERMISSIONS as PERM JOIN SYS.OBJECTS AS SO
ON PERM.MAJOR_ID=SO.[OBJECT_ID]
WHERE SO.[Name] like 'ProcedureName'
Comments