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.
14,358 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,153 questions
{count} votes

4 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 5,570 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

  4. Sheldon Vernon 0 Reputation points
    2024-06-05T11:54:14.0133333+00:00

    Hi Guys I am having theexact same problem as above andI dontknow what to do. I working on my laptop and I have managed to configure the SHIR whichworks. However when I try to create a SQL link server in the cloud to I am unableto connect to the server.

    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.