SQL Server 2008 dan Di Atas:
/* CREATE A NEW ROLE */
CREATE ROLE db_executor
/* GRANT EXECUTE TO THE ROLE */
GRANT EXECUTE TO db_executor
Hanya untuk pengguna (bukan peran):
USE [DBName]
GO
GRANT EXECUTE TO [user]
SQL Server 2008 dan Di Atas:
/* CREATE A NEW ROLE */
CREATE ROLE db_executor
/* GRANT EXECUTE TO THE ROLE */
GRANT EXECUTE TO db_executor
Hanya untuk pengguna (bukan peran):
USE [DBName]
GO
GRANT EXECUTE TO [user]