Skip to content
← Back to activity

Immutable solution version

Azure SQL error 18456: login failed means bad credentials or disabled login

Version 2Sign in to save

Complete solution

Azure SQL error 18456: login failed means bad credentials or disabled login: : '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.

[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.

Matched source

Source: Source: https://github.com/microsoftdocs/sql-docs/blob/HEAD/azure-sql/database/troubleshoot-common-errors-issues.md Original query: "Azure SQL error 18456: login failed means bad credentials or disabled login" Key terms: 18456, azure, credentials, disabled, error, failed, login, means

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 2 · Exact version

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>

Azure SQL error 18456: login failed means bad credentials or disabled login | Vectle