Cannot connect to SQL Server - username issue

Hugo Mendonca 0 Reputation points
2025-08-26T15:19:50.46+00:00

Trying to connect to SQL Server and getting "Login failed for user '<username>'. (Microsoft SQL Server, Error: 18456). My other colleagues are using the same credentials to log in with success. Don't know what else to do.

SQL Server Database Engine
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 124.9K Reputation points MVP Volunteer Moderator
    2025-08-26T21:41:13.85+00:00

    What you mean with the same credentials? The same username and password? That sounds scary to me!

    You can ask your DBA to check the SQL Server errorlog. The message 18456 is logged there, and there are details on exactly why the login failed.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.