Sep 28, 2021 | Email Conversion
How to Fix Microsoft SQL Server Error 18456?
By Deepak Singh Bisht
In this post, we will learn about SQL Server error 18456 and the reasons for this error. We will also learn how to fix Microsoft SQL Server Login Failed error 18456. If you are also facing this problem and looking for a simple way to fix it, then this post will help you.
What is SQL Server error 18456?
SQL Server error 18456 is caused by authentication issues. Error 18456 is displayed if the server name you entered is correct, but the connection could not be granted due to one of several reasons. SQL Server error message 18456 does not provide much information because it is intended to hide details from unauthorized users. So that, one cannot enter SQL Server by guessing the information.
Causes of SQL server error 18456
Microsoft SQL Server uses two types of authentication. One is Windows Authentication, and the other is SQL Server Authentication. Together we call this mixed-mode authentication. This error occurs when mixed-mode authentication is enabled. This error can occur if
- You are trying to log in using Windows Authentication with a user that SQL Server does not recognize as a SQL User login.
- You are using SQL Server Authentication and the login or password is incorrect.
- Your password is expired.
How to fix SQL Server login failed error 18456?
Before proceeding with troubleshooting, verify that your credentials are correct. If everything is fine, then you can use the following method to solve this issue. To perform this solution, follow the steps below.
- Open SQL Server Management Studio (SSMS)
- Select Windows Authentication from the Authentication drop-down
- Click on the connect button
- Right-click on the instance and go to the properties
- From the server properties window, select the Security option
- Choose SQL Server and Windows Authentication mode option and click on the OK button.
- A message will pop up "Some of your configuration changes will not take effect until SQL Server is restarted."
- Click on the OK button.
- Right-click on the instance and choose restart
- Click on the Yes button.
- Disconnect and reconnect again
- Select SQL Server authentication from the Authentication drop-down
- Enter login and password details and click on the connect button
The above method will help you to fix Microsoft SQL Server Login Failed error 18456. But before executing this solution, verify that your credentials are correct and your password has not expired.