Unable to login to SQL Server + SQL Server Authentication + Error: 18456


I have created login account on my localhost\sql2008 Server (Eg. User123)
Mapped to Database (default)
Authentication Mode on SQL Server is set to both (Windows and SQL)
But login to SQL Server fails with following message (for User123)
Note: Have checked multiple time that UserName / Password are typed in correctly
By default login failed error message is nothing but a client user connection has been refused by the server due to mismatch of login credentials. First task you might check is to see whether that user has relevant privileges on that SQL Server instance and relevant database too, thats good. Obviously if the necessary prvileges are not been set then you need to fix that issue by granting relevant privileges for that user login.
Althought if that user has relevant grants on database & server if the Server encounters any credential issues for that login then it will prevent in granting the authentication back to SQL Server

In summary:
  1. Right click on DBMS & select properties
  2. This window will open choose security & click on the both Windows & Sql Server Authentication.
  3. Restart your DBMS.
Now the same with pictures

Step 1: Right click on DBMS & select properties.

Step 2: Windows -> SQL Server Authentication

DBMS Properties dialogThis window will open, choose security & click on the both Windows & Sql Server Authentication. SQL Server Authentication dialog

Step 3: Restart your DBMS.


Comentarios

Entradas populares de este blog

Guía de herramientas básicas para estudiantes: 31 apps y webs imprescindibles para ayudarte con los estudios

Comando FOR para archivos BAT

How to Fix Failed to Connect a Hyper-V Standalone to Veeam Backup