Build with an Azure free account. Get USD200 credit for 30 days and 12 months of free services.

Start free today

How To Fix Login Failed for User Microsoft SQL Server Error 18456 Step-By-Step

Play How To Fix Login Failed for User Microsoft SQL Server Error 18456 Step-By-Step

The Discussion

  • User profile image

    from login - properties - securable --> mark the permission for ( control server )
    this solve the error ISA

  • User profile image

    Right click server name from the SSMS and go to server properties. Click security and enable Wndows and SQL Server Authentication mode. This solution is to the point and will fix the problem.

  • User profile image

    Thank you matay ! I did that before on my local PC but I forgot completely.

  • User profile image

    Thanks matay. Been a awhile since I set up a new db server.

  • User profile image

    If this helped, Please rate using stars above.


  • User profile image

    Nah, mate its a no go with this method.

  • User profile image

    Just an update, here is the solution if anyone else has there error with a properly configured login:

    If you're trying to connect using "SQL Server Authentication" then you may want to modify your server authentication:

    Within the Microsoft SQL Server Management Studio in the object explorer:

    Right click on the server and click Properties

    Go to the Security page

    Under Server authentication choose the SQL Server and Windows Authentication mode radio button

    Click OK

    Restart SQL Services

  • User profile image

    Thanks This was very helpful

  • User profile image

    Matay! thank you, it worked for me too :)

  • User profile image
    Just enable dual authentication mode and restart the service - it works like charm!
  • User profile image

    Hey everyone! I am receiving the error code 18456 using local administrator & domain administrator so i cannot even login into SSMS. Any ideas? Thanks

  • User profile image

    Freddy - I was running into this issue too. Have you tried launching SSMS using "Run as Administrator" then signing in?

  • User profile image

    Nathan - Launching SSMS using "Run as Administrator" resolved the issue for me! I'm not certain as to why that fixes it but it works!

  • User profile image
    Todd McDaniel SQL DBA

    An application should NEVER log into a database as administrator and application users should never have administrator or even DB_OWNER level permissions to a database. This is very bad coding practice to do this and a big security risk.

    Application users should have Read or Read/Write/Execute permissions to the specific tables and procedures necessary, preferably controlled by user groups.

  • User profile image

    when i finsh install SQL 2014 then i want run it i get this error i can't login how i can' do all solv taking about chang permmition but i cant connect with server any idea

  • User profile image
    Anup T Roy

    I just perform the below step:
    and it work for me.

    If you are trying to connect using your administrator credentials, start you application by using the Run as Administrator option. When connected, add your Windows user as an individual login.


  • User profile image


  • User profile image
    In my case, I needed to login to MSSQL that bundled in a Microsoft VHD which I attached as an OS disk to a VM so the only option I had was to use Windows authentication which was failing.
    Nathan's solution worked the Magic. Once I gained access, I could then add another user like Anup suggested.

    Thanks Nathan.
  • User profile image

    Thanks guys. After changing login authentication mode to mixed mode you have to restart SQLSERVER. Go to Services in windows and find SQLSERVER then restart it Solved the problem.

  • User profile image

    I cannot get in SSMS even with the Built-In account.
    I tried several Local Administrators:
    1. the installer account
    2. the service account used for SQL Server
    3. the service account used for SQL Server Agent

    All these accounts failed after the Reporting Service was installed!!

    Any idea?

  • User profile image

    It works! Changed both SQL to MixMode and wala!

  • User profile image
    Nick Armstrong

    Thanks, Matay! That worked. I tried just about everything but overlooked that setting.

Add Your 2 Cents