Icon GRANT ROLES

Grants roles to a given user.

Syntax
GRANT <RoleName> [,<RoleName>]
TO <Authorization> [,<Authorization>]

<Authorization> = <UserName>

Usage
Use this statement to grant a role to a user.

Examples
-- The following statement grants the Administrators
-- role to the user "Joe Smith".

GRANT "Administrators" TO "Joe Smith"

Required Privileges
The current user must be granted the system-defined Administrators role in order to execute this statement. Please see the User Security topic for more information.

SQL 2003 Standard Deviations
This statement deviates from the SQL 2003 standard in the following ways:

DeviationDetails
WITH ADMIN OPTIONElevateDB does not support the WITH ADMIN OPTION clause. Only administrators can grant privileges and roles in ElevateDB.
GRANTED BYElevateDB does not support the GRANTED BY clause. The grantor in ElevateDB is always the administrator executing the GRANT statement.
Image