A network-related or instance-specific error occurred while establishing a connection to SQL Server.

Venkat Bommavaram 6 Reputation points
2021-12-16T17:52:30.88+00:00

Have issues connecting a linked service on Synapse studio to Azure SQL DB.
I have another ADF on a different resource group which connects to the below Azure SQL DB with the same credentials and machine. But when I try to connect using synapse studio - linked service throws the below error.

Cannot connect to
SQL Database: 'sample-sql.database.windows.net',
Database: 'sample-db',
User: 'user'.
Check the linked service configuration is correct,
and make sure the SQL Database firewall allows the integration runtime to access.
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 - No such host is known.), SqlErrorNumber=11001,Class=20,State=0,
No such host is known Activity ID: 3684f064-2a5c-4fc4-8eba-867aa64f231c.

Azure SQL Database
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Venkat Bommavaram 6 Reputation points
    2021-12-30T00:28:37.123+00:00

    Hey Pradeep,

    I was able to resolve the issue. I just had to create a managed private end point and I was able to connect successfully.

    Thanks!

    1 person found this answer helpful.

  2. Manish Kumar 1 Reputation point
    2022-03-01T16:37:22.84+00:00

    I faced same issue. I created Azure sql db and was getting same error connecting it in Azure Synapse studio.
    I followed
    https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-configure#connections-from-inside-azure

    Section : Connections from inside Azure
    When an application from Azure tries to connect to the server, the firewall checks that Azure connections are allowed by verifying this firewall rule exists. This can be turned on directly from the Azure portal blade by switching the Allow Azure Services and resources to access this server to ON in the Firewalls and virtual networks settings

    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.