Fix the Microsoft SQL Server Error 18456 [Login Failed For User]

Try these easy fixes if Microsoft SQL Server error 18456 pop up

Reading time icon 4 min. read


Readers help support Windows Report. When you make a purchase using links on our site, we may earn an affiliate commission. Tooltip Icon

Read the affiliate disclosure page to find out how can you help Windows Report effortlessly and without spending any money. Read more

Key notes

  • Microsoft SQL Server Error 18456 can occur on your system for many reasons.
  • Logging in with an invalid credential or not having the necessary permissions may cause the error.
  • Running the SQL server as an administrator can fix the error in no time, so apply the steps detailed below.
microsoft sql server error 18456

Logging into the Microsoft SQL Server requires a certain level of permissions and authorization. Hence, issues with the login process can prompt Microsoft SQL Server Error 18456.

Also, it can cause the Operating System not supported by SQL server error to appear.

What causes the Microsoft SQL server error 18456?

The Microsoft SQL Server, Error: 18456 Login Failed for user can occur for many reasons. It indicates that you have entered invalid credentials, permission problems, or SQL server settings impeding the authentication process.

However, common causes that may prompt the error on your PC are:

  • Invalid login credentials – Users can run into the Microsoft SQL Server, Error: 18456 if they attempt to log in with invalid credentials. It can trigger the SQL server to be unresponsive because it can’t read unregistered credentials.
  • SQL server does not have elevated permissions – When the SQL server lacks the necessary rights and administrator privileges, it can affect its processes and cause an error. It limits the access and ability the SQL server Management Studio has on your PC.
  • Expired login password – Sometimes, the password for login can be expired, and it can cause the login credentials to be invalid and unusable. It can cause SQL Server Error 18456 to occur.

Other factors may be responsible for the error. Nevertheless, we’ll discuss solutions for fixing it and getting your SQL server Management Studio working.

How do I fix SQL Server Error 18456?

Go ahead with the following preliminary checks:

Proceed with the steps below if you can’t fix the error.

1. Launch the SQL Server as Administrator

  1. Left-click the Start button, type SQL Server Management Studio, and select Run as administrator from the drop-down.
  2. Click Yes on the UAC prompt.
  3. Try logging into the server and check if the SQL server error 18456 persists.

Allowing the SQL Server Management Studio to run as administrator will fix any permissions issues affecting it.

2. Change the SQL Server Authentication mode

  1. Repeat steps 1 & 2 in the first solution to run the MSSM Studio as an administrator.
  2. Go to Object Explorer, right-click on your server, and select Properties from the drop-down.
  3. Select Security from the left pane, choose the SQL Server and Window Authentication mode option in the right pane, and click OK.
  4. Expand the Security tab, select Logins, right-click the server name, then select Properties from the drop-down.
  5. Input the password details under SQL Authentication.
  6. Navigate to the Status tab, and select Enabled under Login.
  7. Click OK and restart the SQL server.

Running the SQL server in Authentication mode will fix the login issues causing the error. You can check our guide on other Windows hosting SQL server you can use.

3. Launch the SQL Server in a Single User Mode

  1. Left-click the Start button, type SQL Server Management Studio, then open it.
  2. Right-click on the SQL Server service and select Properties from the drop-down.
  3. Navigate to the Startup Parameters tab, then input -m in the Specify a Startup Parameter box.
  4. Click the Add button and apply the changes.
  5. Right-click on the SQL Server service and select start from the drop-down.
  6. Left-click the Start button, type SQL Server Management Studio, then right-click and select Run as administrator from the drop-down.
  7. Click Yes on the UAC prompt and check if you can connect to the SQL Server as administrator.
  8. If you can connect, add the domain account to the SQL server and assign the SysAdmin role.
  9. Repeat step 3 and remove the -m in the Startup Parameters tab.
  10. Repeat step 5 to Restart the SQL server.

The above steps will check the SQL server’s parameters and assign the administrative role to help fix the issue.

4. Enable the TCP/IP Protocol in the Server Configuration Manager

  1. Right-click the Start button and select Microsoft SQL Server (with a year name like 2007).
  2. Click on SQL Server Configuration Manager and choose Yes on the UAC prompt.
  3. Expand SQL Server Network Configuration and select Protocols for (the server/database name).
  4. On the right pane, double-click on TCP/IP and select Yes from the Enabled menu.
  5. Click on Apply.
  6. Left-click the Start button, type Services, and select Run as Administrator.
  7. Right-click on the SQL Server and select Restart from the drop-down.

The TCP/IP Protocol in the Server Configuration Manager will fix network issues liable to cause the Microsoft SQL Server Error 18456.

Alternatively, our readers can check how to repair a corrupt SQL server database for more information on fixing SQL errors. Likewise, we have a guide on fixing the cannot generate SSPI context error in SQL Server.

For more questions or suggestions, kindly drop them in the comments section below.

More about the topics: sql server