SQL Server/T-SQL Tutorial/System Functions/sp AddRole
Версия от 13:46, 26 мая 2010; (обсуждение)
A statement that creates a new user-defined role
EXEC sp_AddRole BillingEntry
System stored procedures for creating and deleting user-defined roles
The syntax for sp_AddRole
sp_AddRole [@rolename = ] "role_name"
[,[@ownername = ] "owner_login_ID" ]
The syntax for sp_DropRole
sp_DropRole [@rolename = ] "database_role_name"