Azure SQL DB Connection fails intermittently from SSMS

Shailaja Kelkar 1 Reputation point
2020-10-28T02:51:40.86+00:00

Hello Team,

We are connecting to Azure SQL DB using SSMS. Our IP address has been added in the FIrewall listing of Azure Portal.

But, we keep facing this issue intermittently where the connection to Azure SQL DB fails. some instances of the error message are as given below -

Please suggest!

ADDITIONAL INFORMATION:

Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=348; handshake=29667; (Microsoft SQL Server, Error: -2)

TITLE: Connect to Server


Cannot connect to spoazsql001.database.windows.net.


ADDITIONAL INFORMATION:

A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.) (Microsoft SQL Server, Error: 121)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=121&LinkId=20476


The semaphore timeout period has expired

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anurag Sharma 17,571 Reputation points
    2020-10-28T09:32:31.827+00:00

    Hi @Shailaja Kelkar , welcome to Microsoft Q&A forum.

    This issue mostly looks like related to network or latency where in connection is taking more time than expected.

    Just to make sure please try increasing the connection time in SSMS once to larger value and then try again. You can find this value under connection properties tab as mentioned in below screenshot:

    35732-image.png

    0 comments No comments