Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
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.

 

  • bkeano Profile Picture
    136 on at
    Re: Connect to 2 sources in SQL Transform

    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

  • Javier Gallego Profile Picture
    on at
    Re: Connect to 2 sources in SQL Transform

    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

     

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 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics