Skip to content

Commit 2643400

Browse files
authored
Merge pull request #7589 from charithcaldera/patch-5
Supportability - Azure Synapse Serverless SQL Pool
2 parents e6dbe1f + 67b43b7 commit 2643400

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

docs/t-sql/statements/grant-database-scoped-credential-transact-sql.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: GRANT Database Scoped Credential (Transact-SQL)
3-
description: "GRANT Database Scoped Credential Permissions (Transact-SQL)"
3+
description: "GRANT Database Scoped Credential permissions"
44
ms.prod: sql
5-
ms.prod_service: "database-engine, sql-database"
5+
ms.prod_service: "database-engine, sql-database, synapse-analytics"
66
ms.technology: t-sql
77
ms.topic: reference
88
f1_keywords:
@@ -19,15 +19,15 @@ author: VanMSFT
1919
ms.author: vanto
2020
ms.reviewer: ""
2121
ms.custom: ""
22-
ms.date: "06/19/2017"
23-
monikerRange: "=azuresqldb-current||>=sql-server-2017||>=sql-server-linux-2017||=azuresqldb-mi-current"
22+
ms.date: "05/25/2022"
23+
monikerRange: "=azuresqldb-current||>=sql-server-2017||>=sql-server-linux-2017||=azuresqldb-mi-current||=azure-sqldw-latest"
2424
---
2525

26-
# GRANT Database Scoped Credential Permissions (Transact-SQL)
27-
[!INCLUDE[sqlserver2017-asdb](../../includes/applies-to-version/sqlserver2017-asdb.md)]
26+
# GRANT Database Scoped Credential permissions (Transact-SQL)
27+
[!INCLUDE[sqlserver2017-asdb-asdbmi-asa](../../includes/applies-to-version/sqlserver2017-asdb-asdbmi-asa.md)]
2828

2929
Grants permissions on a database scoped credential.
30-
30+
3131
![Topic link icon](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md)
3232

3333
## Syntax
@@ -42,13 +42,14 @@ GRANT permission [ ,...n ]
4242
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
4343

4444
## Arguments
45-
*permission*
45+
46+
#### *permission*
4647
Specifies a permission that can be granted on a database scoped credential. Listed below.
4748

48-
ON DATABASE SCOPED CREDENTIAL **::**_credential_name_
49+
#### ON DATABASE SCOPED CREDENTIAL **::**_credential_name_
4950
Specifies the database scoped credential on which the permission is being granted. The scope qualifier "::" is required.
5051

51-
*database_principal*
52+
#### *database_principal*
5253
Specifies the principal to which the permission is being granted. One of the following:
5354

5455
- database user
@@ -60,10 +61,10 @@ GRANT permission [ ,...n ]
6061
- database user mapped to an asymmetric key
6162
- database user not mapped to a server principal.
6263

63-
GRANT OPTION
64+
#### GRANT OPTION
6465
Indicates that the principal will also be given the ability to grant the specified permission to other principals.
6566

66-
AS *granting_principal*
67+
#### AS *granting_principal*
6768
Specifies a principal from which the principal executing this query derives its right to grant the permission. One of the following:
6869

6970
- database user
@@ -85,6 +86,9 @@ AS *granting_principal*
8586
|ALTER|CONTROL|CONTROL|
8687
|REFERENCES|CONTROL|REFERENCES|
8788
|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.
8892
8993
## Permissions
9094
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*
106110

107111
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.
108112

109-
## See Also
113+
## Next steps
110114
[GRANT (Transact-SQL)](../../t-sql/statements/grant-transact-sql.md)
111115
[REVOKE Database Scoped Credential (Transact-SQL)](../../t-sql/statements/revoke-database-scoped-credential-transact-sql.md)
112116
[DENY Database Scoped Credential (Transact-SQL)](../../t-sql/statements/deny-database-scoped-credential-transact-sql.md)

0 commit comments

Comments
 (0)