You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grants permissions on a database scoped credential.
30
-
30
+
31
31
[Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md)
Specifies the database scoped credential on which the permission is being granted. The scope qualifier "::" is required.
50
51
51
-
*database_principal*
52
+
####*database_principal*
52
53
Specifies the principal to which the permission is being granted. One of the following:
53
54
54
55
- database user
@@ -60,10 +61,10 @@ GRANT permission [ ,...n ]
60
61
- database user mapped to an asymmetric key
61
62
- database user not mapped to a server principal.
62
63
63
-
GRANT OPTION
64
+
#### GRANT OPTION
64
65
Indicates that the principal will also be given the ability to grant the specified permission to other principals.
65
66
66
-
AS *granting_principal*
67
+
#### AS *granting_principal*
67
68
Specifies a principal from which the principal executing this query derives its right to grant the permission. One of the following:
68
69
69
70
- database user
@@ -85,6 +86,9 @@ AS *granting_principal*
85
86
|ALTER|CONTROL|CONTROL|
86
87
|REFERENCES|CONTROL|REFERENCES|
87
88
|VIEW DEFINITION|CONTROL|VIEW DEFINITION|
89
+
90
+
> [!NOTE]
91
+
> In Azure Synapse Analytics, GRANT on database scoped credential is supported for serverless SQL pools only.
88
92
89
93
## Permissions
90
94
The grantor (or the principal specified with the AS option) must have either the permission itself with GRANT OPTION, or a higher permission that implies the permission being granted.
@@ -106,7 +110,7 @@ AS *granting_principal*
106
110
107
111
Grantees of CONTROL SERVER permission, such as members of the **sysadmin** fixed server role, can grant any permission on any securable in the server. Grantees of CONTROL permission on a database, such as members of the **db_owner** fixed database role, can grant any permission on any securable in the database. Grantees of CONTROL permission on a schema can grant any permission on any object within the schema.
0 commit comments