ODBC Connection to Synapse Linked Service

Harikrishnan Arayakeel 25 Reputation points
2024-12-13T16:27:33.41+00:00

HI, I am trying to connect an ODBC connection to a Synapse-linked service, but I am encountering the following error: [HYT00] [IBM][System i Access ODBC Driver] Connection login timed out.

Here are the details of my setup:

  • Integration Runtime: Self-hosted
  • ODBC Driver: Created an ODBC64 driver for the server using the IP and user details on a self-hosted machine.
  • Firewall Configuration: Our IT team has been requested to open the Azure Firewall to allow connections from the self-hosted machine to 10.xx.xx.xx via Port xx.

The linked service settings are:

  • Connection String: DSN=ODBCname
  • Authentication: Basic

Could you please confirm if there are any mandatory settings or prerequisites that need to be configured before establishing this connection? attaching image.42.png

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,375 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vinodh247 34,661 Reputation points MVP Volunteer Moderator
    2024-12-13T17:44:51.6166667+00:00

    Hi ,

    Thanks for reaching out to Microsoft Q&A.

    To resolve the issue of using an ODBC connection in an Azure Synapse linked service:

    1. Verify Connection Parameters: Ensure that the server name, database name, and authentication method (Azure Active Directory or SQL authentication) in the ODBC driver are correctly configured.
    2. Firewall Rules: Confirm that your Synapse SQL pool allows the client's IP address by configuring the firewall rules in the Synapse workspace.
    3. Driver Version: Use the latest ODBC driver for SQL Server or Synapse Analytics to avoid compatibility issues.
    4. Linked Service Configuration: In the Azure Data Factory linked service, select the "ODBC" connection type and provide the connection string, user credentials, and any required authentication details.
    5. Test the Connection: Use the "Test Connection" button in the ADF linked service configuration to ensure everything is working properly.
    6. Network Considerations: If your Synapse workspace is in a private network, ensure the client is connected via ExpressRoute, VPN, or a private endpoint.

    But pls keep in mind these are generic advises. You should make sure to spend some time to see which solution would best fix your issue.

    Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.


  2. Harikrishnan Arayakeel 25 Reputation points
    2024-12-16T09:01:47.69+00:00

    Hi, I have checked these settings with our team,

    Checked Connection Parameters: Confirmed these with IT, and the server name, database name, and authentication method have been verified.

    Firewall Rules: I’m not sure how to verify these. Could you provide guidance on how to check if the Synapse SQL pool firewall is configured to allow the client’s IP address?

    Driver Version: We are using the IT-recommended ODBC driver on the self-hosted machine.

    Network Considerations: Could you advise on how we can test the network configuration, particularly in relation to private networks, VPN, or ExpressRoute? Looking towards for your response


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.