REST API from Azure VM using ODBC cannot connect. From on premise can connect

Jeffry Piell 0 Reputation points
2024-07-09T20:46:03.18+00:00

REST API from Azure VM using ODBC cannot connect. From on premise can connect

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,907 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Nikhil Duserla 2,990 Reputation points Microsoft Vendor
    2024-07-12T06:21:01.01+00:00

    Hi Jeffry Piell, Please ensure that you have given TCP port 1433 and please refer to this document: https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-a-server-to-listen-on-a-specific-tcp-port?view=sql-server-ver16

    Can you please send us the screenshot of the error message that you are facing?

    0 comments No comments

  2. Jeffry Piell 0 Reputation points
    2024-07-18T00:27:16.9366667+00:00

    I am using a dsnless connection.

    Apparently, the default port is not set to 1433 if the application making the dsnless connection is running in Azure.

    Adding the port number (in my case, 1433) to the connection string remedied the issue.

    The fix:

    Change

    "Driver={ODBC Driver 17 for SQL Server};Uid=XXXXXXX;Pwd=XXXXXXXX;Database=XXXXX=your-server-address;"

    To this

    "Driver={ODBC Driver 17 for SQL Server};Uid=XXXXXXX;Pwd=XXXXXXXX;Database=XXXXX=your-server-address,1433;"


  3. Jeffry Piell 0 Reputation points
    2024-07-25T23:16:38.4433333+00:00

    Barnabas,

     

    Support enabled a one-time incident for this issue in response to a post in the forum, which no one could answer.  They did this because I agreed to share the solution with the community.  Once my product offering goes live, I will purchase the critical business package.  I was already thinking about purchasing the business critical package.

    Uppara’s excellent support convinced me that the support package is the best option. I will be purchasing support soon. Kudos to you to her, yourself, and your excellent staff! Thank you very much!

     

    Kind regards,

     

    Jeffry A Piell

    Genoch, LLC

    President

    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.