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
amandabus21
Helper V
Helper V

Server Upgrade

We are doing a server upgrade and moving ourSQL Server databases to another server. 

 

I have all my reports pointing to the old database. Is there a way i can globally change the datasource to point to the new server? Instead of manually opening each report and changing the datasource in Power BI Desktop.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @amandabus21 

Thank you for your inquiry. You mentioned that you need to change the data source of your Power BI reports, which is a very common need. However, due to limitations on the Report server, we are unable to modify our connections strings.

vjianpengmsft_0-1726713261375.png

Here the official offers a working solution:

Change data source connection strings with PowerShell - Power BI | Microsoft Learn

First we need to create a parameter for our connection string in PowerQuery, and use the parameter when connecting:

vjianpengmsft_1-1726713510880.png

Next we need to use the PowerShell tool to update the data source connection string for our report:

vjianpengmsft_2-1726713701664.png

To use this method, you need to have a solid understanding of how Report Server uses PowerShell and how to use PowerShell to traverse your reports.
Bulk updates can be achieved by iterating through all reports and executing the update connection string cmdlet command provided by the document.

 

 

Best Regards

Jianpeng Li

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi, @amandabus21 

Thank you for your inquiry. You mentioned that you need to change the data source of your Power BI reports, which is a very common need. However, due to limitations on the Report server, we are unable to modify our connections strings.

vjianpengmsft_0-1726713261375.png

Here the official offers a working solution:

Change data source connection strings with PowerShell - Power BI | Microsoft Learn

First we need to create a parameter for our connection string in PowerQuery, and use the parameter when connecting:

vjianpengmsft_1-1726713510880.png

Next we need to use the PowerShell tool to update the data source connection string for our report:

vjianpengmsft_2-1726713701664.png

To use this method, you need to have a solid understanding of how Report Server uses PowerShell and how to use PowerShell to traverse your reports.
Bulk updates can be achieved by iterating through all reports and executing the update connection string cmdlet command provided by the document.

 

 

Best Regards

Jianpeng Li

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.