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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
hervema
Microsoft Employee
Microsoft Employee

Change Datasource In report

Hello,

 

I developed a report in a development environment, whose data comes from a local SQL server. The report has to be deployed on a production environment pointing to the corresponding production SQL server...

 

However, once deployed on the power bi report server, it is not possible to adapt the server name, impossible to change the data source! and it is not possible to do it from the development environment because the production SQL server is not accessible from the development environment.

 

How to do it?

 

Thanks,

 

Regards,

 

Hervé

 

 

 

 

4 REPLIES 4
bradsy
Microsoft Employee
Microsoft Employee

Manage\Data Sources on the report.

hervema
Microsoft Employee
Microsoft Employee

 Of course not, that would have been the right thing to do of course, but it is not possible to modify the data source once deployed (grayed out) 😞

Flynn
Frequent Visitor

Hi all,

 

having the same issue. It's not possible to realize a professional development pipiline yet.

My Workaround:
Work with an alias for the sql server in file C:\Windows\System32\Drivers\etc\hosts
Use the same alias with different hosts in every environment and use this alias in the Power BI Report.

 

Best Regards

 

Anonymous
Not applicable

This is indeed very annoying.

 

In order to work around it, everytime we want to deploy a report to production we copy it to a staging VM with Power BI Desktop installed, open the report and change the datasources to production and then deploy it to the production Report Server.

 

I believe that the reason they do not allow the change directly is that the data inside the report would still be from the developpment environment until the next scheduled refresh but they could simply force a refresh after changing a data source.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.