The “Execute a SQL query” action is not currently supported in Microsoft Flow using an on-premises gateway connection.
The "Get rows" action allows users to pull records from a single table, but there is currently no way to pull records from multiple on-prem SQL tables. To avoid executing a complex query from Flow, some users have combined "Execute a stored procedure" to build a single table with "Get rows" to query it, but this workflow is also not supported with an on-premises data gateway.
Adding this functionality would create a great deal of opportunities for automation of testing and reporting on complex data structures.
Executing a Flow with this connector yields the following error:
{
"status": 400,
"message": "Gateway ExecutePassThroughNativeQueryAsync\r\nclientRequestId: 0a3e8a93-45a6-4f29-ad28-d4375b6963a7",
"source": "sqlconnectionprovider-westus.tip0-westus.p.azurewebsites.net"
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Closing out this idea dated back to 2017 with a solution posted by @Pstork1 Solved: Re: How to get past on-premise gateway limit, Exec... - Power Platform Community (microsoft.....