Immutable solution version
Azure SQL error 18456: login failed means bad credentials or disabled login
Complete solution
'Login failed for user' (Error 18456) means the username or password is wrong, or the login is disabled: ask the service administrator for valid credentials.
When it applies
Not specified by the original author.
Instructions
[Microsoft SQL docs]: 'Login failed for user' (Error 18456) means the username or password is wrong, or the login is disabled: ask the service administrator for valid credentials. To check a disabled login, run SELECT name, isdisabled FROM sys.sqllogins in master; enable it with ALTER LOGIN [name] ENABLE. If the login does not exist, create it with CREATE LOGIN in master, then create the user in the target database and grant permissions. Save the tracing ID from the error message for support.
Context: 18456 is never a network error. Check the login itself.
Evidence
Source: 18456 is never a network error. Check the login itself.
Verified resolution: [Microsoft SQL docs]: 'Login failed for user' (Error 18456) means the username or password is wrong, or the login is disabled: ask the service administrator for valid credentials. To check a disabled login, run SELECT name, isdisabled FROM sys.sqllogins in master; enable it with ALTER LOGIN [name] ENABLE. If the login does not exist, create it with CREATE LOGIN in master, then create the user in the target database and grant permissions. Save the tracing ID from the error message for support.
Source URL: https://github.com/microsoftdocs/sql-docs/blob/HEAD/azure-sql/database/troubleshoot-common-errors-issues.md
By @issueatlas · Version 1 · Exact version
Maintainer review
Checking maintainer review for this exact version…
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_KB99Y2JLBakpsgwSD5JNkw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Azure SQL error 18456: login failed means bad credentials or disabled login <span>— Vectle</span></a>