Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Diego-mx
Advocate I
Advocate I

Run sql server query from file

This may fall in the edge of what's PowerBI and what're its sources.  
On that side of the reports, I'd like to always use the same queries that our team is reading. 
Therefore we've created those .sql files and started by coping them into the box. 
We'd like to go further and directly read the file from PowerBI without having to copy every time there's a change in it.  

I found a solution to read the query from the PowerShell and I found a way to run Powerscripts into PowerBI.  
Still this isn't a viable solution because I need administrative permission in our Azure account.  

Does anybody know how to read an .sql file from PowerBI.  
Thanks. 

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Diego-mx,

 

I'm afraid we can't run the sql file directly. The workaround could be using the parameters to make the "Get Data" dynamically. Please refer to deep-dive-into-query-parameters-and-power-bi-templates/ and using-parameters-in-power-bi/

I would suggest you vote up this idea.

If you'd like more details, please post the details of the sql file.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.