SQL Server/T-SQL Tutorial/System Functions/sp AddRole

Материал из SQL эксперт
Перейти к: навигация, поиск

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"