Long-running Stored Procedures for Power Platform SQL Connector
The SQL Server connector in Power Platform exposes a wide range of backend features that can be accessed easily with the Logic Apps interface, allowing ease of business automation with SQL database tables. However, the user is still limited to a 2-minute window of execution. Some stored procedures may take longer than this to fully process and complete. In fact, some long-running processes are coded into stored procedures explicitly for this purpose. Calling them from Logic Apps is problematic because of the 120-second timeout. While the SQL connector itself does not natively support an asynchronous mode, it can be simulated using passthrough native query, a state table, and server-side jobs.
THIS ARTICLE HAS BEEN REPLACED BY OFFICIAL DOCUMENTATION HERE:
Handle long-running stored procedures in the SQL connector - Azure Logic Apps | Microsoft Docs