Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Execute a query against all the rows of a table in sql


I have a table in SQL that stores all my server names. I want to create a server dashboard that gives me realtime results. So i need to run the server queries against all the rows in the SQL table..

For eg  the sql table has

id     serveranme

1      abc

2      def


i need to run  select @@version  against abc and def to get the  sql version and display it in my  Power BI report. How can i achieve this?





Community Support
Community Support

Hi @AmrutaKar ,


Direct query maybe a work around.


Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Super User II
Super User II

Hi @AmrutaKar 

i just want to notice that power BI as any other BI tool is not the good solution for any real-time monitoring from my experience

do not hesitate to give a kudo to useful posts and mark solutions as solution

Helpful resources



We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!


The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors