Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

compare SQL query results from two different servers

(0) ShareShare
ReportReport
Posted on by 167

I have two SQL queries that are running against two separate SQL instances (servers). I need to take the values returned, find the difference in them, and depending on that result send an email. My plan is to have these queries scheduled and sent to my inbox (SSRS). I can create a flow for each query to look in my inbox and create a OneDrive excel file. I would need an additional flow to take these results when their files are created and compare them, like below. Last, on one of the email conditions I would need to attach a pdf report. That report is sent automatically as well, so I think I would need an additional flow to upload that to OneDrive. Is there a more efficient way to approach this problem? I know multiple triggers aren't supported in single flows, but having to create this many flows seems a little difficult to manage.

 

note: The data is on premises and I do not have a data gateway installed.

 

amcneil32_0-1626963986823.png

 

  • Verified answer
    amcneil32 Profile Picture
    167 on at
    Re: compare SQL query results from two different servers

    so I discovered that SSRS can also deliver reports to a windows file share. I downloaded the onedrive app for that which then syncs a local folder to onedrive online. this helped reduce the number of flows i needed to create.

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