In SQL Server, Login with SQL Server Authentication is throwing an error is a standard SQL Question. So, in this article, we will show you the step by step approach to resolve SQL Server Login Error. First, Let me show you the error. From the below screenshot you can see the SQL Server Login Error for user Suresh
Before we start doing anything to resolve SQL Server login errors, let me show you the list of available logins in our SQL Server Management Studio. From the below screenshot you can see that the Sql Server user exists. I suggest you to refer Create a Login article to understand the steps to create Sql Server users.
SQL Server Login Errors to Access
If your account doesn’t have the permission to login, right-click on the Username and select properties from the context menu
Selecting the properties option will open the following window
Under the status tab, check the permissions
- Grant: Granting permission to users to connect with the database engine
- Enabled: Enable this user to login with his / her login details
In most cases, this will resolve the SQL Server login errors.
SQL Server Login Error – Sql Server Authentication
In some cases, your database will accept only windows authentication. In these cases, you have to change the authentication mode to dual. Right-click on the Server name and select Properties option from the context menu
It opens a properties window
Please navigate yourself to the Security tab. From the below screenshot, you can see that the Server Authentication selected to Windows Authentication Mode. It means it only accepts local windows users.
Please change the option to SQL Server and Windows Authentication Mode option
Click Ok. Remember, configuration changes will take effect only after the server restart. So, restart the server instance
Try to login with Username Suresh
We successfully logged in to the server.