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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
spathak04
Helper II
Helper II

Connection string report server

Hello,
How to change the connection string dynamically based on our environemnt like QA and prod 
Connection string.png

3 REPLIES 3
Jon-Heide
Employee
Employee

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

@harikishant  "in encrypted format"... can you please explain how you decrypted this?

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.