GRANT <RoleName> [,<RoleName>]
TO <Authorization> [,<Authorization>]
<Authorization> = <UserName>
UsageUse 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 PrivilegesThe 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 DeviationsThis statement deviates from the SQL 2003 standard in the following ways:
Deviation
Details
WITH ADMIN OPTION
ElevateDB does not support the WITH ADMIN OPTION clause. Only administrators can grant privileges and roles in ElevateDB.
GRANTED BY
ElevateDB does not support the GRANTED BY clause. The grantor in ElevateDB is always the administrator executing the GRANT statement.