A connection was successfully established with the server, but then an error occurred during the pre-login handshake.

Jonpier Veliz 0 Reputation points
2023-04-04T18:54:21.6366667+00:00

I am trying to connect to a Azure SQL database in Server Management Studio, but I get a timeout period error. I have tried increasing the connection time out and enabling "trust server certificate". I noticed that my connection string has this: "TrustServerCertificate=False;Connection Timeout=30;" Is there a way I can edit this so that it is set to True? Or are there other things I could try?

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Jonpier Veliz 0 Reputation points
    2023-04-25T14:10:45.7533333+00:00

    Hi Oury, yes I have solved this issue by allowing access to the server. Thank you!


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.