SQL Server Error

Ke’Ziah 0 Reputation points
2023-08-09T23:14:51.52+00:00

I’m trying to login to SQL Server (SSMS) with the server name that is listed under the database engine section on the login screen. It’s the same server I used previously to access SQL but it keeps giving me this error: “A connection was successfully established with the server, but then an error occurred during the login process.” So I checked in the configuration manager to make sure the server was running, which it is. In the options>connections properties tab I selected the “trust server certificate” box & I added within the additional connection parameters: “TrustServerCertificate=True” After I updated everything I tried to login the error message then changed to: “Login failed (Error:18456)”. I double checked to make sure I’m using the windows authentication drop down as well. Also I have never created a SQL username and password so I don’t know why it is saying my login is failed. I have tried everything and spent countless hours trying to fix the issue. Can someone please help?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
SQL Server Other
{count} votes

3 answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2023-08-10T05:40:30.2533333+00:00

    (Error:18456)

    18456 is a generic logon failure, you can find more details about in SQL Server ErrorLog file.

    https://learn.microsoft.com/en-us/sql/tools/configuration-manager/viewing-the-sql-server-error-log?view=sql-server-ver16


  2. LiHongMSFT-4306 31,566 Reputation points
    2023-08-10T07:02:47.88+00:00

    Hi @Ke’Ziah

    the error message then changed to: “Login failed (Error:18456)”.

    You get this error message when a connection attempt is rejected because of an authentication failure. User logins can fail for many reasons, such as invalid credentials, password expiration, and enabling the wrong authentication mode.

    Please refer to this doc for more details: MSSQLSERVER_18456.

    Best regards,

    Cosmog Hong


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. Javier Villegas 900 Reputation points MVP
    2023-08-11T23:42:10.57+00:00

    Hello

    Make sure that ports 1433 and 1434 are open

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.