SQL Server 2008以降:
/* CREATE A NEW ROLE */
CREATE ROLE db_executor
/* GRANT EXECUTE TO THE ROLE */
GRANT EXECUTE TO db_executor
ユーザーのみ(役割ではない)の場合:
USE [DBName]
GO
GRANT EXECUTE TO [user]
SQL Server 2008以降:
/* CREATE A NEW ROLE */
CREATE ROLE db_executor
/* GRANT EXECUTE TO THE ROLE */
GRANT EXECUTE TO db_executor
ユーザーのみ(役割ではない)の場合:
USE [DBName]
GO
GRANT EXECUTE TO [user]