SQL Flow Field Guide

CREATE CREDENTIAL

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

defines a credential

What changes

Input
catalog
Output or change
security catalog: credential

Syntax at a glance

CREATE CREDENTIAL credential_name WITH IDENTITY = 'identity_name' [ , SECRET = 'secret' ] [ FOR CRYPTOGRAPHIC PROVIDER cryptographic_provider_name ]

Work example

A SQL Server feature needs an external identity stored as a credential.

Review the mapped identity, secret source, rotation owner, and exact feature that consumes the credential.

Check your work The credential name is correct and its secret remains in the approved secret store.

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