SQL Flow Field Guide

ALTER CREDENTIAL

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

changes a credential

What changes

Input
catalog
Output or change
security catalog: credential

Syntax at a glance

ALTER CREDENTIAL credential_name WITH IDENTITY = 'identity_name' [ , SECRET = 'secret' ]

Work example

An external credential needs a planned identity or secret rotation.

Use the approved secret process and verify every SQL Server feature that consumes this credential.

Check your work The consumer authenticates with the rotated identity and the new secret is absent from logs.

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