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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
dancarr22
Helper V
Helper V

How to change db connection from SQL Server to Power BI Service?

Hello,

 

We currently have multiple Power BI workbooks which connect to a SQL Server db.

I want to update the connection in these workbooks to point to a Power BI Service.  How is this done?

I've tried to go into the Advanced Editor in the Power BI Service to view the connection string but unable to edit queries.

Any help greatly appreciated.

 

Thanks,

Dan

 

 

3 REPLIES 3
mow700
Resolver I
Resolver I

You won't be able to edit queries if the source is a Power BI Service hosted model.  The trick to this is to promote this hosted model to a master structure.  Reports that reference this model as the source should simply filter the master model.  Your master model still connects to the original sources, you would be editing the master model queries if required.

More details:

https://powerbi.microsoft.com/en-us/blog/connecting-to-datasets-in-the-power-bi-service-from-desktop...

Thanks for your response.  I'm clear on the benefits of Power BI service and we are currently connecting to it for new reports.

But, we have older PBI reports which originally connected to SQL Server (on which the current Service structure is based) but there is no way to change the data source and say "point to Power BI Service instead of SQL Server".  

Is there any way in the Advanced Editor to change a SQL Connection to point to the service?

 

Thanks,

Dan

I get it now.  Confirmed, I don't see a way to change the datasource from SQL to PBI Service.  With a Service connected .pbix file I have no access to the query editor at all so I can't discover the connection syntax in the advanced editor.  I connected to the Service connected .pbix with DAX studio, and was unable to view any metadata.  I connected to the .pbix file with SSMS and could not enumerate any cubes or connections either.  Finally, I renamed my .pbix file with a .zip extension and inspected the contents of the Connections file that it contains with notepad.  Finally I can see the details, but I have not been successful in updating my SQL connected to file to the new source.  Good luck, please let us know if you discover a way to accomplish this one.

 

snip_20171018101325.png

 

 

 

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors