SQL Flow Field Guide

REVOKE Database Scoped Credential

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

REVOKE permissions on database scoped credential

What changes

Input
principal and securable names
Output or change
permission metadata

Syntax at a glance

REVOKE [ GRANT OPTION FOR ] permission [ ,...n ] ON DATABASE SCOPED CREDENTIAL :: credential_name { TO | FROM } database_principal [ ,...n ] [ CASCADE ] [ AS revoking_principal ]

Work example

A database principal no longer needs to reference one scoped credential.

Confirm the external feature has moved to another identity before removing the direct permission.

Check your work The principal cannot use the credential and its approved replacement still authenticates.

Open Microsoft Learn for full syntax, permissions, and details for your version.