• Home
  • Content
  • RSS
  • Log in

Password Recovery

Provide useful password recovery tricks, guides and software
  • Home
  • Password Recovery Bundle
  • Reset Windows Password
  • Product Key Finder
  • Protect My Folders

Troubleshoot SQL Server Error 18456: Login Failed for User

July 2, 2015 updated by Admin Leave a reply »

One of the most common error messages I come across when logging into SQL Server is error 18456: Login failed for user you provided. Can anybody tell me what the error code means?

sql-server-login-failure

This generic message means that SQL Server is not able to grant you access, but this message is useless for you to determine the true reason for the failure. To troubleshoot the SQL Server login failure, we have to dig into the SQL Server error log and find the root cause of the issue.

SQL Server maintains its own error logs that contain messages describing informational and error events. The SQL Server error log is the best place for a Database Administrators to look for informational messages, warnings, critical events, etc. By default, the error log is located at the folder:

C:\Program Files\Microsoft SQL Server\MSSQL.{instance_name}\MSSQL\LOG\

Typically, SQL Server retains backups of the previous six logs and gives the most recent log backup the extension .1, the second most recent the extension .2, and so on. The current error log has no extension.

errorlog

To check out what is happening on your database, you should check out the current error log file named ERRORLOG. It’s just a text file and you can open it with any text editor, such as Notepad. When you receive the login failure message (error 18456), just open the ERRORLOG file, browse to the end and you can find the corresponding entry related to your login issue.

sql-server-error-log

The key to the message is the ‘State’ which the server will accurately set to reflect the source of the problem. In the example above, State 58 indicates that you’re trying to login with a SQL Server account that’s not a supported authentication mode for your server.

The common error states and their descriptions are provided in the following table:

ERROR STATE ERROR DESCRIPTION
State 2 and State 5 Could not find a login matching the name provided.
State 6 Attempt to use a Windows login name with SQL Authentication
State 7 Login disabled and password mismatch
State 8 Password mismatch
State 9 Invalid password
State 11 and State 12 Valid login but server access failure
State 13 SQL Server service is paused. No new connections can be accepted at this time.
State 16 A connection was successfully established with the server, but then an error occurred during the pre-login handshake.
State 18 Change password required
State 23 Access to server validation failed while revalidating the login on the connection.
State 38, 40, 46 Failed to open the database specified in the login properties.
State 50 Current collation did not match the database’s collation during connection reset.
State 51 Failed to send an environment change notification to a log shipping partner node while revalidating the login.
State 56 Failed attempted retry of a process tokenvalidation.
State 58 An attempt to login using SQL authentication failed. Server is configured for Windows authentication only.
State 65 Password did not match that for the user provided.

Related posts:

  • How to Login to SQL Server If SA Account Is Disabled
  • 2 Methods to Start SQL Server in Single User Mode
  • How to Force SQL Server User to Change Password at Next Login
  • How to Troubleshoot Windows Login Problems

  • Previous Post: 2 Methods to Fix “The Group Policy Client service failed the logon. Access denied.”
  • Next Post: Reset Windows 8 or 7 Password with the Freeware NTPasswd

Posted in SQL Server, Tips & Tricks

Tags: SQL Server Error 18456 sql server login error sql server login failure

    • Subscribe Subscribe to my blogs feed
    • Previous Entry 2 Methods to Fix “The Group Policy Client service failed the logon. Access denied.”
    • Next Entry Reset Windows 8 or 7 Password with the Freeware NTPasswd
  • Links
    • Forgot Windows Password
    • Outlook Password Recovery
    • Password Recovery Bundle
    • PDF Password Recovery
    • Product Key Finder
    • Protect My Folders
    • Recover iTunes Password
    • SQL Server Password Changer
  • Categories
    • Active Directory Password
    • Free Software
    • Mac
    • Others
    • Product Key
    • Software News
    • Software Reviews
    • SQL Server
    • Tips & Tricks
    • Video Converter
    • Windows 10
    • Windows 11
    • Windows 7
    • Windows 8
    • Windows Vista
    • Windows XP
  • Recent Posts
    • Easy Ways to Turn on ‘Do Not Disturb’ on Windows 11
    • Fix: Unable to remove the Virtual Touchpad icon in Windows 11
    • Fix: Remote Desktop Frequently Disconnects after Windows 11 Update
    • How to Disable Notepad AI Rewrite in Windows 11
    • How to Remove “Edit in Notepad” Context Menu in Windows 11
  • Archives
    • April 2025
    • March 2025
    • February 2025
    • January 2025
    • December 2024
    • November 2024
    • September 2024
    • July 2024
    • June 2024
    • May 2024
    • April 2024
    • March 2024
    • February 2024
    • January 2024
    • December 2023
    • November 2023
    • October 2023
    • September 2023
    • August 2023
    • July 2023
    • June 2023
    • May 2023
    • April 2023
    • March 2023
    • February 2023
    • January 2023
    • December 2022
    • November 2022
    • October 2022
    • September 2022
    • August 2022
    • July 2022
    • June 2022
    • May 2022
    • April 2022
    • March 2022
    • February 2022
    • January 2022
    • December 2021
    • November 2021
    • October 2021
    • September 2021
    • August 2021
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • March 2020
    • February 2020
    • January 2020
    • December 2019
    • November 2019
    • October 2019
    • September 2019
    • August 2019
    • July 2019
    • June 2019
    • May 2019
    • April 2019
    • March 2019
    • February 2019
    • January 2019
    • December 2018
    • November 2018
    • October 2018
    • September 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018
    • March 2018
    • February 2018
    • January 2018
    • December 2017
    • November 2017
    • October 2017
    • September 2017
    • August 2017
    • July 2017
    • June 2017
    • May 2017
    • April 2017
    • March 2017
    • February 2017
    • January 2017
    • December 2016
    • November 2016
    • October 2016
    • September 2016
    • August 2016
    • July 2016
    • June 2016
    • May 2016
    • April 2016
    • March 2016
    • February 2016
    • January 2016
    • December 2015
    • November 2015
    • October 2015
    • September 2015
    • August 2015
    • July 2015
    • June 2015
    • May 2015
    • April 2015
    • March 2015
    • February 2015
    • January 2015
    • December 2014
    • November 2014
    • October 2014
    • September 2014
    • August 2014
    • July 2014
    • June 2014
    • May 2014
    • April 2014
    • March 2014
    • February 2014
    • January 2014
    • December 2013
    • November 2013
    • October 2013
    • September 2013
    • August 2013
    • July 2013
    • June 2013
    • May 2013
    • April 2013
    • March 2013
    • February 2013
    • January 2013
    • December 2012
    • November 2012
    • October 2012
    • September 2012
    • August 2012
    • July 2012
    • June 2012
    • May 2012
    • April 2012
    • March 2012
    • February 2012
    • January 2012
    • December 2011
  • Tags
    Active Directory bypass windows password crack windows password delete windows password forgot active directory password forgot administrator password forgot domain administrator password forgot laptop password forgot outlook password forgot outlook pst password forgot sql server password forgotten windows password forgot windows 7 password forgot windows 8 password forgot windows 8 tablet password forgot windows administrator password forgot windows login password forgot windows password forgot windows xp password hack windows password HP windows 8 password reset lost windows password password password reset disk pdf password recovery recover firefox password recover windows 7 product key recover windows password remove pdf restrictions remove windows password reset domain administrator password reset sql server password reset windows 7 password reset windows 8 password reset windows 8 tablet password reset windows administrator password reset windows login password reset windows password reset windows xp password UEFI BIOS windows 7 windows 8 windows password recovery windows password reset disk windows server 2008

Back to Top

© 2025 top-password.com. Proudly powered by WordPress.