SQL Server 2008 a vyšší:
/* CREATE A NEW ROLE */
CREATE ROLE db_executor
/* GRANT EXECUTE TO THE ROLE */
GRANT EXECUTE TO db_executor
Pouze pro uživatele (nikoli pro roli):
USE [DBName]
GO
GRANT EXECUTE TO [user]
SQL Server 2008 a vyšší:
/* CREATE A NEW ROLE */
CREATE ROLE db_executor
/* GRANT EXECUTE TO THE ROLE */
GRANT EXECUTE TO db_executor
Pouze pro uživatele (nikoli pro roli):
USE [DBName]
GO
GRANT EXECUTE TO [user]