SQL Server Error: 18456 Severity: 14 State: 12 Connection Error

SQL Server Error: 18456 Severity: 14 State: 12 Connection Error

Unable to Connect to SQL Server Due to Error: 18456, Severity: 14, State: 12

Details:

SQL Server Error: 18456 Severity: 14 State: 12 or Error: 18456, Severity: 14, State: 12 Login failed for user ‘Username’ issue is caused by permissions issue. The following error appears in the SQL Server log:

Login failed for user 'Username'. Reason: Login-based server access validation failed with an infrastructure error. Check for previous errors. [Client: 10.0.0.1]
Error: 18456, Severity: 14, State: 12

Cause:

Error: 18456, Severity: 14, State: 12 means that the authentication is successful to the SQL Server but the server access fails due to permission issue. Below is resolution

Resolution or How to Fix this issue:

Need to ensure that the SQL Server Authentication mode is enabled for this login method to work.

Below are SQL commands to master database to give the permission to connect via TCP/IP for the User which should fix this issue

GRANT CONNECT SQL TO "Username"
GRANT CONNECT ON ENDPOINT::"TSQL Default TCP" TO "Username";

Vamshi B

Recent Posts

sql server detected logical consistency based error

Learn about SQL Server detecting logical consistency based issues and how to resolve them.

5 months ago

sql server error 1222

Learn about SQL Server error 1222 and how to resolve the lock request time out…

5 months ago

Microsoft SQL Server 2022 New Features

Discover the new features of Microsoft SQL Server 2022 and how they compare to previous…

5 months ago

SQL Server Error 1222 lock request time out period exceeded

SQL Server Error 1222 lock request time out period exceeded   Lock request time out…

5 months ago

SQL Server Error : 427, Severity: 20. Could not load the definition for constr

SQL Server Error : 427, Severity: 20. Could not load the definition for constraint ID…

10 months ago

SQL Server Error : 204, Severity: 20. Normalization error in node %ls.

SQL Server Error : 204, Severity: 20. Normalization error in node %ls.

10 months ago

This website uses cookies.