Skip to content
December 5, 2025

Techs & Gizmos

Hands On Review For Latest Gadgets & Gizmos

  • Home
  • Windows
  • Mac
  • Others
    • Tutorials
    • Drivers
  • Privacy Policy
  • Contact Us
Main Menu
Windows

How to Fix Login failed Microsoft SQL Server error 18456 [Easy Guide]

August 11, 2021 - by Sachin Prakash

What is ‘Login failed Microsoft SQL Server error 18456’?

If you are experiencing ‘Login failed Microsoft SQL Server error 18456’ while trying to connect to SQL Server (local or remote) in Windows 10/8/7 computer, then you are in right place for the solution. Here, you will be guided with easy steps/methods to resolve the issue. Let’s starts the discussion.

‘Microsoft SQL Server’: MS SQL Server or Microsoft SQL Server is RDMS (Relational Database Management System) designed & developed by Microsoft. As Database server, it is software with the primary function of storing and retrieving data as requested by other software applications which may run either on same computer or on another computer across the network/internet. It is written in C & C++ programming language and available for Linux, Microsoft Windows Server and Microsoft Windows Operating System.

However, several users reported that they faced ‘Login failed Microsoft SQL Server error 18456’ problem while they tried to connect to Microsoft SQL Server on their Windows 10 computer or on Windows Server. This error prevents you from logging-in into MS SQL Server (local or remote) for some reasons. There could be several reasons behind this error including required administrator permissions not give SQL Server, disabled TCP/IP protocol in SQL Server settings and other reasons. Let’s take a look at error message.

“Login failed for user ‘<user_name>’. (Microsoft SQL Server, Error: 18456)”

Here, <user_name> is username of MS SQL Server received by the user. One possible way to resolve the issue is to restart the MS SQL Server, your computer (Client), and networking equipments/computers. Also, you should make sure you are entering correct username & password and not copy-pasting the address. Entering wrong SQL Server login credentials could be one possible reason behind Login failed error. So, make sure you are entering correct details.

You should also make sure you are entering correct database name in MS SQL Server and make sure you have updated the configuration file accordingly. You can try to resolve the issue by unlocking the account by using query ALTER LOGIN WITH PASSWORD = UNLOCK. Sometimes, this type of error can be occurred if SQL Server is under attack. Let’s go for the solution.

How to fix Login failed Microsoft SQL Server error 18456 on Windows 10 or Windows Server?

Method 1: Run MS SQL Server as Administrator and disable UAC on the server

This error can be occurred with SQL server is not running with administrator permission. You can run SQL Server with Admin permission and then disable UAC on the server in order to fix the issue.

Run SQL Server as Administrator:

Step 1: Type ‘SQL Server Management Studio’ in ‘Windows Search box’, right-click on SQL Server Management Studio from the results appeared, and select ‘Run as Administrator’

Step 2: Click on ‘Yes’ button on UAC dialog box and check if you login into SQL Server without any issue

Step 3: If not, then check if disabling UAC on the server machine resolve the issue

Run the SQL Server in Single User Mode:

Step 1: Type ‘SQL Server Configuration Manager’ in Windows Search box, right-click on SQL Server service, and select ‘Properties’

Step 2: In the ‘Properties’ window, click on ‘Startup Paramenters’ tab and type ‘-m’ inside ‘Specify a startup parameter’ box and then hit ‘Add’ and ‘Apply’ button

Step 3: Now, right-click on SQL Server service and select ‘Restart’ to restart the service

Step 4: Now, type ‘SQL Server Management Studio’ in Windows Search box and right-click on results appear and select ‘Run as Administrator’, and check if the error is resolved.

Step 5: If so, then Add the domain account to SQL Server and assign it the ‘SysAdmin’ role

Step 6: Now, back to the ‘SQL Server Configuration Manager’ window, and remove ‘-m’ parameter in ‘Startup Parameters’ tab

Step 7: Finally, restart SQL Server service again using ‘step 3’ and check if the issue is resolved.

Method 2: Enable TCP/IP protocol in SQL Server Conjuration Manager

Step 1: Type ‘SQL Server Configuration Manager’ in Windows Search box and open it from results appeared. Click ‘Yes’ if UAC prompt appeared

Step 2: In the eloped window, in left pane, find and expand ‘SQL Server Network Configuration’ and select ‘Protocols For’ option

Step 3: Now, in right pane, find and double-click on ‘TCP/IP’ and select ‘Yes’ in dropdown of ‘Enabled’ and then hit ‘Apply’ to save the changes

Step 4: Now, press ‘Windows + R’ keys on keyboard, type ‘services.msc’ in the opened ‘Run’ window and hit ‘OK’ to open ‘Services’ window

Step 5: In the opened window, find and right-click on SQL Server with server name, and select ‘Restart’ option to restart the service

Step 6: Once done, check if the error is resolved.

Method 3: Change Authentication Mode of SQL Server

Step 1: Open ‘SQL Server Management Studio’ via Windows Search and in ‘Objects Explorer’, find and right-click on your Sever and select ‘Properties’

Step 2: In the opened ‘Server Properties’ window, in left pane, select ‘Security’ and in right pane, select ‘SQL Server and Windows Authentication Mode’ radio option

Step 3: Finally, hit ‘Apply’ to save the changes and in ‘Object Explorer’ of SQL Server Management Studio, right-click on your server and select ‘Restart’ to restart the server and check if the error is resolved.

Step 4: If not, run the following command in ‘Windows PowerShell (Admin)’ or install MS Power tools and then run the command

psexec.exe -i -s ssms.exe

Step 5: Check if the issue is resolved after execution the above command

Method 4: Enable SA Account and reset account password

One possible way to resolve the issue is to enable SA account of SQL server and reset its password.

Step 1: Open ‘Microsoft SQL Server Management Studio’ and expound ‘Security’ in left pane

Step 2: Double-click on ‘Logins’ and open ‘SA’

Step 3: Now, enter new password and confirm the password, and then go to ‘Server Roles’ tab and select ‘Public’ and ‘SysAdmin’ role options

Step 4: Now, go to ‘Status’ tab and in right pane, select ‘Enabled’ under ‘Login’ and then hit ‘Apply’ to save the changes

Step 5: Now, open ‘Services’ Window via Windows Search, find and right-click on SQL Server Service and select ‘Restart’ to restart the service. Once done, check if the error is resolved.

Method 5: Create new login and restart the ‘Reporting Services’

If the issue is still persist, then you can create new login and restart the reporting services.

Step 1: Open ‘Microsoft SQL Server Management Studio’ and expand ‘Security’ tab in left pane

Step 2: Now, expand ‘Logins’, right-click on it and select ‘New login’, enter the credentials, in the login name, select your computer account

Step 3: Deselect ‘User Must Change Password at next Login’ checkbox and select the Database

Step 4: Now, go to ‘Server Roles’ and select ‘Public’ role, and go to ‘User Mapping’ tab, and select the database and select db_owner, and then save the changes

Step 5: Now, open ‘Services’ window via Windows Search, find and right-click on SQL Server Reporting Service and select ‘Restart’ to restart the service.

Step 6: After that, try reconnecting to the database and check if the error is resolved.

Fix Windows PC problems with ‘PC Repair Tool’ [Recommended Solution]

‘PC Repair Tool’ is easy & quick way to find and fix BSOD errors, DLL errors, EXE errors, problems with programs, malware or viruses issues, system files or registry issues and other system issues with just few clicks. You can get this tool through button/link below.

Download PC Repair Tool

Conclusion

I am sure this post helped you on How to fix Login failed Microsoft SQL Server error 18456 on Windows 10/Windows Server with several easy steps/methods. You can read & follow our instructions to do so. That’s all. For any suggestions or queries, please write on comment box below.

TaggedLogin failed Microsoft SQL Server error 18456

Related Posts

How to fix Windows Update Error 0x80070422 Manually?

September 14, 2024

How to fix Windows Update Error 0x80070020?

September 14, 2024

How to fix Windows Update Error 0x80070003? Simple and Easy Methods

September 13, 2024

Post navigation

Previous Article Fix The service cannot be started either because it is disabled in Windows 10
Next Article How to Fix Media is write protected Windows 10 [Easy Guide]

About Sachin Prakash

View all posts by Sachin Prakash →

Recent Posts

  • How to fix Windows Update Error 0x80070422 Manually?
  • How to fix Windows Update Error 0x80070020?
  • How to fix Windows Update Error 0x80070003? Simple and Easy Methods
  • How to fix Windows Update Error 0x80070017?
  • How to fix Windows Update Error 0x80070002? Simple and Easy Methods
  • How to fix Service Registration is Missing or Corrupt Error?
  • How to fix Outlook Error 0x800ccc0f?
  • How to fix Outlook Error Code 0x8004210A? Simple and Effective & Methods
Copyright © 2025 Techs & Gizmos.
Powered by WordPress and HitMag.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT