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 / Connect to 2 sources i...
Power Automate
Unanswered

Connect to 2 sources in SQL Transform

(1) ShareShare
ReportReport
Posted on by 136

Hi
The current action 'Transform date using Power Query' for On Premise SQL  connections, seems to suggest that you can use 2 sources\SQL Instances, but I cannot get this to work and can't find any documents that explain how it can be done

So to be clear;

I have a SQLServer1 and DB1 and SQLServer2 and DB2
I want to merge data from Table1 in DB1 to Table2 in DB2

In Power Query you can create extra Parameter for another server and database by simply adding new parameters, then you can also put these neatly into a new group , and when you right click on that parameters group you can choose to select another data source , as below

bkeano_0-1601894369446.png

 

But this always defaults back to the original data source and database, so the one that was chosen when you added the action 'Transform data using Power Query' in the first place. It doe snot let you select from another SQL instance or in any way use your new parameters
I have changed the option ' Allow combining data from multiple sources...' as highlighted below under Options\Project Options

bkeano_1-1601894567971.png

 

Is it possible to do this?

 

The work around is really not usable, that is where I set 1 of the SQL tables as an array that looks up the other SQL table, also as an array. Every record of array 1 must lookup every record of array 2 to see if they match, then if they don't put the record in a new array, which is basically a list of unmatched records. As my volumes are quite high, the flow takes a long time and is resource heavy
If Power Query in flow could make a link between the 2 instances, all I would need is a 'left other join' on the merged tables, then I could easily filter on unmatched.

 

Categories:
I have the same question (0)
  • Javier Gallego Profile Picture
    Microsoft Employee on at

    Hi Bkeano,

     

    I would like to share this document with you, did you check it?

    https://docs.microsoft.com/en-us/power-query/power-query-tutorial-shape-combine

     

    Tutorial:

    https://www.youtube.com/watch?v=EVgXcTy0kM0

     

    I hope it helps you.

     

    Regards,

    JAvier

     

  • bkeano Profile Picture
    136 on at

    HI

    Thanks for your reply
    Unfortunately that only applies in Power Query Power BI, I do that type of combining and merging all the time there, this is why I miss it in Power Query in Power Automate.
    My issue is that I cannot see how to do this in Power Automate

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard