ALTER CREDENTIAL
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.