Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
授予用户执行过程或用户定义函数的特权。
GRANT EXECUTE ON [ owner.]{ procedure-name | user-defined-function } TO userid, ...
无。
您必须具有该过程,或者拥有 MANAGE ANY OBJECT PRIVILEGE 系统特权。
自动提交。
SQL/2008 SQL/2008 的核心功能,用于授予对存储过程的 EXECUTE 特权。
以下示例允许用户 SQLTester 执行 Calculate_Report 过程。
GRANT EXECUTE ON Calculate_Report TO SQLTester;
以下 SQL 语句授予 M_Haneef 执行名为 my_procedure 的过程所需的特权。
GRANT EXECUTE ON my_procedure TO M_Haneef;