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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Executing a SQL Query ...
Power Automate
Unanswered

Executing a SQL Query (V2) to 'Split' a compose and Insert data into its columns

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I am having a tough time writing a proper query and was wondering if I can get help here.  I have a flow that is running successfully, but when I refresh to see if any rows populated in SQL, it is not happening.  My Select and Compose pieces are pulling the data perfectly:

JDaws87_0-1632323219100.png

JDaws87_2-1632323340290.png

Above query is successful as well but with nothing in the ResultSets or results in general, but the Input of execute query is grabbing the data from compose:

JDaws87_3-1632323427837.png

 

I'm sure it has something to do with how I wrote the query

JDaws87_4-1632323625213.png

My only goal here is to take the Compose output from an Excel table, and place into the Query to split each column and insert the data into its respective columns in SQL.  Any help would be great as the reference links below were not helpful/successful for me, and surprisingly there's not a whole lot out there on this topic:

 

https://powerusers.microsoft.com/t5/Building-Flows/Extremely-Slow-SQL-inserts/m-p/527181#M67733 - Shows successful query but not showing code / query is not working on my end.

https://stackoverflow.com/questions/46323946/how-to-insert-json-object-to-sql-server-2016-as-nvarchar   - Doesn't work for me unless I'm writing it wrong.

 

Insert Row is out of the question because of the length of time, I want to be able to insert 3000 rows and read through the first link it did not take them long at all to do it with this method.  Thanks for reading!

 

 

Categories:
I have the same question (0)
  • takolota1 Profile Picture
    4,978 Moderator on at

    You can try using this batch SQL flow template for this: 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard