web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SQL stored procedure t...
Power Automate
Unanswered

SQL stored procedure takes time to run in Flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am running a MS Flow which runs a Kusto control command followed by a SQL execute procedure. The Kusto command pushes the data into a sql table(around 1500 records). The procedure then runs on top of this table. The problem I am facing is, Kusto command gets executed within seconds whereas procedure takes several minutes to execute. When I run the procedure from SSMS, it hardly takes seconds to run.

Any help ??

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    on at

    Hi @Mayank,

     

    Could you please share a screenshot of your flow’s configuration?

    The execution time of “Execute stored procedure” action would be affected by the amount of data in SQL table.

    You could take a try to create an index in the SQL table and check if the issue is improved.

     

    Best regards,

    Kris

  • Foxxx Profile Picture
    17 on at

    Hey @Mayank,

     

    Did you ever found a sollution for this issue?

     

    Thanks in advance,

  • takolota1 Profile Picture
    4,974 Moderator on at

    If you just need to do something like create or update a lot of SQL rows, you could try a part of this template & see if the batch create or batch update runs faster than the stored procedure.

    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/SQL-Batch-Create-Read-Update-and-Delete/td-p/1715338

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard