Unable to connect target database which is onprem MS SQL Server in Datafactory

Rajeev Kumar 0 Reputation points
2024-07-30T12:43:13.8466667+00:00

User's image

Cannot connect to SQL Database. Please contact SQL server team for further support. Server: '20.81.184.76 1433', Database: 'Target', User: 'target'. 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server), SqlErrorNumber=53,Class=20,State=0,

The network path was not found

Target Database is hosted on Azure VM

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,898 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,810 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,696 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 32,411 Reputation points MVP
    2024-07-30T13:51:30.08+00:00

    As the database is hosted on an Azure VM which is within a VNet, you would have to install a self hosted IR in a server within the VNet which would be able to access the database.

    And use that SHIR via ADF to access the database :

    https://learn.microsoft.com/en-us/azure/data-factory/create-self-hosted-integration-runtime?tabs=data-factory

    You can also set up a private end point :

    https://techcommunity.microsoft.com/t5/azure-database-support-blog/how-to-connect-adf-to-sql-server-on-azure-vm-using-private/ba-p/3249139


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.