Unable to connect On Prem SQL Server with Azure Data Factory

Sivakumar Rajabather 85 Reputation points
2024-03-13T13:22:29.9866667+00:00

Hi,

I am getting the below error while connecting with On Premises MS SQL Servier with Azure Data Factory. Could you please help me to get this issue resolved.

Cannot connect to SQL Database. Please contact SQL server team for further support. Server: 'SIVAKUMAR', Database: 'AdventureWorks2017', User: 'mrk'. Check the linked service configuration is correct, and make sure the SQL Database firewall allows the integration runtime to access.

Login failed for user 'mrk'., SqlErrorNumber=18456,Class=14,State=1,

Thanks and Regards,

R. Sivakumar

India

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,655 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,492 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Sivakumar Rajabather 85 Reputation points
    2024-03-14T09:12:30.78+00:00

    Hi Harishga,

    Thank you for your quick response.

    Yes. SQL Authentication is supported in my database server.

    I have already installed a self hosted IR in my Azure Data Factory.

    Ok. I will try the 3rd step and let you know.

    Thanks,

    R. Sivakumar


  2. Akshay Goel 0 Reputation points
    2024-04-09T08:02:46.1166667+00:00

    Hi

    We are trying to connect an on-prem sql server from our Azure ADF. There are firewalls involved. What are we missing . Please see the error :

    "

    Cannot connect to SQL Database. Please contact SQL server team for further support. Server: 'servertest.test.loc', Database: 'test_sirius', User: 'test\testdevsvc'. 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

    "


  3. Pinaki Ghatak 2,240 Reputation points Microsoft Employee
    2024-04-19T11:21:52.01+00:00

    Hello @Sivakumar Rajabather .

    Currently, you are experiencing a network issue. There are two primary aspects to verify:

    Firstly, if your SQL instance is within a virtual network, ensure that the machine you are connecting from resides in the same CIDR address space (subnet), or establish a VNET peering that allows connectivity to your SQL instance.

    Secondly, if your Azure SQL instance is still assigned a public IP address—which is not recommended due to security concerns—make certain that appropriate firewall policies are in place to permit connections from your machine.

    0 comments No comments