ALTER LOGIN
changes a login
What changes
- Input
- catalog
- Output or change
- security catalog: login
Syntax at a glance
ALTER LOGIN login_name { <status_option> | WITH <set_option> [ , ... ] | <cryptographic_credential_option> } [;]
Work example
A login needs a planned default database, policy, identity, or credential update.
Confirm the identity owner, application dependencies, lockout behavior, and role memberships before changing access.
Check your work The intended principal can sign in with the approved policy and no other principal is affected.
Open Microsoft Learn for full syntax, permissions, and details for your version.