SQL Flow Field Guide

DROP DATABASE SCOPED CREDENTIAL

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

removes a database scoped credential

What changes

Input
catalog
Output or change
security catalog: database scoped credential

Syntax at a glance

DROP DATABASE SCOPED CREDENTIAL credential_name

Work example

A database-scoped credential is no longer used by an external operation.

Search external data sources and database-scoped features for references before removing it.

Check your work No active database operation refers to the credential and its secret owner confirms retirement.

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