Skip to main content
Community site session details

Community site session details

Session Id : WQ1CKKKlR3zRBYMtdpL/S2
Power Automate - Power Automate Desktop
Unanswered

Return Multiple tables From Stored Procedure through Execute Sql Statement in power automate desktop

Like (1) ShareShare
ReportReport
Posted on 13 Nov 2020 06:29:20 by Microsoft Employee

I am executing a SQL Stored Procedure by "Execute Sql statement" in power automate desktop The Stored Procedure returns 5 tables and I've checked that when I execute this in Management Studio, all tables are returned. When I execute this through power automate and examine the output body only the first table is shown to be returned . 

 

Please help on this .

Thanks in advance.

  • DeepaliJagtap Profile Picture
    68 on 10 Jan 2024 at 10:56:37
    Re: Return Multiple tables From Stored Procedure through Execute Sql Statement in power automate desktop

    hi,

    We were facing same challenge, so in order to resolve it, we separated the query into separate sql file and executed them one by one. If there is dependency between those query and if any temp tables are getting created then separate it out create all global temp table first and then execute actual table generating query one by one.

    Please mark this as solution if it helps you solve issue. Happy to help you more.

     

  • skt2508MSPP Profile Picture
    2 on 10 Jan 2024 at 07:25:41
    Re: Return Multiple tables From Stored Procedure through Execute Sql Statement in power automate desktop

    Please any update on this?

     

    Thanks/Santosh

  • HeribertoC Profile Picture
    4 on 13 Jul 2023 at 15:22:50
    Re: Return Multiple tables From Stored Procedure through Execute Sql Statement in power automate desktop

    Please tell us about any update. Regards!

  • AbdulSamadHMC Profile Picture
    4 on 23 Feb 2023 at 08:11:29
    Re: Return Multiple tables From Stored Procedure through Execute Sql Statement in power automate desktop

    Is this functionality implemented?

  • aqureshi Profile Picture
    4 on 23 Feb 2023 at 07:56:50
    Re: Return Multiple tables From Stored Procedure through Execute Sql Statement in power automate desktop

    Hi Team Microsoft,

    How to get Multiple Tables From Stored Procedure through Execute stored procedure (V2) in power automate.

    Regards,

    Ali W. Qureshi

  • PetrosF-MSFT Profile Picture
    on 17 Nov 2020 at 13:39:59
    Re: Return Multiple tables From Stored Procedure through Execute Sql Statement in power automate desktop

    Hi @NeerajYadav 

     

    Please note that the output variable of the "Execute SQL statement" Action is a data table variable.

     

    Currently we don't have a way to store multiple data tables into a variable with a single action.

     

    I will forward this request to the team to consider it for implementation.

     

    Thank you!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete