SQL Flow Field Guide

GRANT Database Scoped Credential

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

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.