Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
How to change the connection string dynamically based on our environemnt like QA and prod
Not currently, it is only editable within the PBI desktop client. Ability to change this in the server is on the roadmap to support in future versions. You *could* hack around this by calling the REST API to download the file and edit the file directly in script + republish.
You can change the connection string at the ReportServer DB level by updating the entity - DataModelDataSource , which has the connection string in the encrypted format.
It's simple get the conn. string from this table that you want to update and replace the existing one with the new one.
Cheers,
Hari T
@Anonymous "in encrypted format"... can you please explain how you decrypted this?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 4 | |
| 3 |