How to fix network-related error while connecting to SQL Server

JBrenner_SYK 0 Reputation points
2024-03-28T16:27:11.0333333+00:00

Hello All,

Before i am reprimanded, i have looked through previous Q&A and attempted to implement the fixes but i am not having any success.

I have a simple Azure SQL Server with a few databases, those databases are used for various ETL in DataFactory and linked services are configured for them as well. I have a self-hosted integration runtime configured on an on-premise machine, which was working fine with this server for a few years and just came across this connection issue last week and cannot resolve it.

I have no issues connecting to the server on my personal machine it is only on the remote machine that contains the SHIR.

Here is the error i am receiving while trying to connect:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)

Any help would be greatly appreciated.

Azure SQL Database
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
955 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 10,675 Reputation points MVP
    2024-03-28T16:33:37.87+00:00

    It appears you need to create a firewall rule to allow connectivity to the target server.

    Follow https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-configure?view=azuresql


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin