SQL Flow Field Guide

DROP CREDENTIAL

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

removes a credential

What changes

Input
catalog
Output or change
security catalog: credential

Syntax at a glance

DROP CREDENTIAL credential_name

Work example

A SQL Server credential is being retired after its consumers change identity.

Find proxy, external source, and provider references, then schedule secret removal with its owner.

Check your work No active SQL Server feature uses the credential and the secret owner records its retirement.

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