March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
Solved! Go to Solution.
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.
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:
Next we need to use the PowerShell tool to update the data source connection string for our report:
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.
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.
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:
Next we need to use the PowerShell tool to update the data source connection string for our report:
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
4 | |
4 | |
4 | |
3 | |
3 |