GRANT Database Scoped Credential
GRANT permissions on database scoped credential
What changes
- Input
- principal and securable names
- Output or change
- permission metadata
Syntax at a glance
GRANT permission [ ,...n ] ON DATABASE SCOPED CREDENTIAL :: credential_name TO principal [ ,...n ] [ WITH GRANT OPTION ] [ AS granting_principal ]
Work example
A database feature needs permission to reference one scoped credential.
Match the consumer, external data source, and credential owner before granting access.
Check your work The intended consumer authenticates and unrelated principals cannot reference the credential.
Open Microsoft Learn for full syntax, permissions, and details for your version.