DF-MSSQL-InvalidFirewallSetting - TCP/IP The TCP/IP connection to the host has failed.

Shivani Tyagi 106 Reputation points
2022-10-14T12:28:00.337+00:00

Hi ,

While connecting to SQL server in pipeline using copy activity, data is fetched and stored in SQL server or blob storage successfully.

But while connecting the same dataset as source in the data flow getting this error -

DF-MSSQL-InvalidFirewallSetting

The TCP/IP connection to the host has failed. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.

Thank you,
Shivani Tyagi

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
SQL Server Other
{count} votes

Accepted answer
  1. PandaPan-MSFT 1,931 Reputation points
    2022-10-17T02:01:46.247+00:00

    Hi @Shivani Tyagi ,
    I hold the view that this is a connection problem, and you can check this official link : https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-configure?view=azuresql , I hope this can be helpful.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment"

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,546 Reputation points Microsoft Employee Moderator
    2022-10-17T12:12:13.927+00:00

    Hi @Shivani Tyagi ,

    Thank you for posting query in Microsoft Q&A Platform.

    To access on premise SQL Server, you need to use Azure Data Factory or Synapse workspace Managed Virtual Network using a private endpoint. Refer to this tutorial for detailed steps.

    Please check below link to understand about SQL server connector for mapping data flows.
    https://learn.microsoft.com/en-us/azure/data-factory/connector-sql-server?tabs=data-factory#mapping-data-flow-properties

    Hope this helps. Please let me know if any queries.

    ---------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification

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.