Cannot connect to SQL Database.

Varun Reddy 0 Reputation points
2023-06-17T05:45:50.09+00:00

Cannot connect to SQL Database. Please contact SQL server team for further support. Server: 'xxxxxxxxxxx.windows.net', Database: 'xxxxxxxxxxxxxxxx', User: 'ccccccc'. 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified), SqlErrorNumber=-1,Class=20,State=0, Activity ID: f450782e-77c8-42f4-a20f-ee6109bc6a35.

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

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 Reputation points
    2023-06-19T02:27:07.3433333+00:00

    Hi @Varun Reddy,

    As per the error message and the SQL error number, below could be the possible root case and resolution for the issue:

    1. Make sure your server name is correct, e.g., no typo on the name.
    2. Make sure your instance name is correct and there is actually such an instance on your target machine. [Update: Some application converts \ to . If you are not sure about your application, please try both ServerInstance and Server\Instance in your connection string ]
    3. Make sure the server machine is reachable, e.g, DNS can be resolve correctly, you are able to ping the server (not always true).
    4. Make sure SQL Browser service is running on the server.
    5. If firewall is enabled on the server, you need to put sqlbrowser.exe and/or UDP port 1434 into exception.

    For more details, refer to SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    2 people found this answer helpful.

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.