When I am running a long running query or stored procedure on Azure Sql databse, I am getting "A transport-level error has occurred when receiving results from the server" error. I have tried same query from portal as well but

Pankaj Sharma 20 Reputation points
2025-02-08T12:03:27.91+00:00

When I am running a long running query or stored procedure on Sql databse, I am getting Msg 64, Level 20, State 0, Line 0 A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) just after 5 minutes. I am getting the same error from application, SSMS and from the Azure portal as well.

I have tried to run the SP from portal query editor but same issue. I don't think it is related to code level timeout issue.

Is there any setting which I have to do on the portal database to increase the query timeout time.

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,485 questions
{count} votes

Accepted answer
  1. PratikLad 80 Reputation points Microsoft Vendor
    2025-02-13T11:57:37.1766667+00:00

    Hi @Pankaj Sharma

    Agreed With @Erland Sommarskog the issue you are facing is because of network issue.

    The root cause of Error Message 64 is typically a transient network issue preventing the application from establishing a connection to the target server. This may be due to temporary network disruptions, firewall restrictions, or server unavailability.

    • Network settings might block the port 1433 which is used by Azure SQL to connect, switch to another network to connect if possible. Ensure that your network connection is stable.
    • Ensure the application's connection string is correctly configured in application, specifying the correct port (1433) and the fully qualified server name. Try increasing the connection timeout value in connection string.
    • As a best practice, ensure that retry logic is implemented to handle transient faults or you retry the connection with better network. For more details, refer to Troubleshoot transient faults and connection errors to SQL Database.
    • You can use Azure SQL Connectivity Checker it is a PowerShell script will run some connectivity checks from this machine to the server and database to detect and fix a wide variety of connectivity errors.
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.