Logic app pulling SQL Sever data with on premise data gateway - response limits

Mike Lee 247 Reputation points
2021-01-15T16:52:21.947+00:00

Hello,

I'm looking into using the on premise data gateway to pull data from an on prem SQL server for use with Logic apps. I was reviewing some documentation (https://learn.microsoft.com/en-us/data-integration/gateway/service-gateway-onprem#considerations) and one of the considerations is that there is a 8 MB compressed limit for responses.

I'm looking to send a query to the SQL server to get back a certain set of records back. Does this limit mean that the response from the SQL server must be 8MB or less? If my data ends up being over 8MB will I need to send multiple queries in order to work around this limit?

Thanks,

Mike

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2021-01-18T06:02:56.953+00:00

    Hi @Anonymous

    Welcome to Microsoft Q&A! Thanks for posting the question.

    Unfortunately, it is the limitation of OPDG that the Read operations have a 2-MB request limit and an 8-MB compressed data response limit as mentioned here.
    Yes, you can have your own logic that will send multiple requests/different queries from the logic app as the workaround.

    Alternatively, you can save the results of the query in blob storage and share a link to the file in the response. For this, you need to write your own service that will be running on your on-premise that will store the result to the storage account based on your input. But if there is no other outbound activity allowed from your on-premise network or you don't want to write your own service, then this would not be feasible for your scenario.

    I will also suggest you to review the known issue and limitation for SQL server connector.

    0 comments No comments

0 additional answers

Sort by: Most 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.