Unable to connect to SQL server in standard logic app using built-in SQL server connector

Ren 21 Reputation points
2024-02-21T01:26:00.13+00:00

Hi I am using standard logic app built in sql server connector to connect my on prem sql server DB. Authentication is the connection string Server={your-server-address};Database={your-database-name};User Id={your-user-name};Password={your-password}; format. However, I am getting login failed for the user. I can connect to DB without any issues on SSMS. could the domain name cause issues? e.g. contoso\userID? Please advise. Thanks

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,390 questions
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,491 questions
{count} votes

Accepted answer
  1. webserverforum 65 Reputation points
    2024-02-25T12:34:01.1+00:00

    The error message "login failed for the user" is definitely showing either user name is incorrect or the password you are using is incorrect. If you are able to connect successfully using these details in management studio then make sure you are using correct SQL server hostname in your app. Check that the SQL server hostname you are using in app, point to correct server IP address of your SQL server. You can check it by using ping command

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 29,236 Reputation points
    2024-02-21T06:53:44.1833333+00:00

    @Ren Thanks for the update. As per this doc https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-sqlazure?tabs=consumption#connect-to-on-premises-sql-server To connect to on-premise SQL server it requires on-premise data gateway to be installed and Windows authentication is supported only with the SQL Server managed connector.

    User's image

    do let me know incase of further queries, I would be happy to assist you.

    1 person 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.