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

Get Fabric certified for FREE! Don't miss your chance! Learn more

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
Microsoft Employee
Microsoft 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. 

Anonymous
Not applicable

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?

 

Helpful resources

Announcements
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.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.