The following rules apply to privileges specific to procedures:
- CREATE PROCEDURE is only a database or user level privilege.
- ALTER PROCEDURE, DROP PROCEDURE, and EXECUTE PROCEDURE apply to databases, users, or specified procedures.
- DROP and EXECUTE can be used as abbreviations for DROP PROCEDURE and EXECUTE PROCEDURE while rescinding privileges if you specify PROCEDURE procedure_name.
- The following happens if PROCEDURE is not specified before object_name:
Request | Description |
---|---|
REVOKE EXECUTE | Object is assumed to be a macro. If a macro with that name does not exist, an error is returned. |
REVOKE DROP | Error is returned. |