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
Unable to connect to SQL server in standard logic app using built-in SQL server connector
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
1 additional answer
Sort by: Most helpful
-
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.
do let me know incase of further queries, I would be happy to assist you.