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

Community site session details

Session Id : yv1E8BkS9Z0fGNu24ncgl1
Power Automate - Building Flows
Answered

compare SQL query results from two different servers

Like (0) ShareShare
ReportReport
Posted on 22 Jul 2021 14:48:42 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

 

I have the same question (0)
  • Verified answer
    amcneil32 Profile Picture
    167 on 23 Jul 2021 at 15:11:35
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete