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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Dynamic Credentials for SQL Server Connection using Parameter

Hi,

I have to connect Azure SQL DB from Power BI/

 

I have created Parameters for SQL Server Name and SQL DB name but can't parameterize the DBUsername and Password.Need help on this.

 

 

Is there any other way where we can read the DataBase details from a text file and load the data in Power BI?

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

It is unavailable to get such a different config files for the same .pbix file in Power BI currently. You can come up a new idea about that , and add your comments there to improve Power BI for making this feature coming sooner.

 

As a workaround, you may publish the same .pbix file to your goal workspaces, then change the parameters about the Azure SQ DB credentials in different workspaces in Power BI Service.

85.png

 

Best Regards,

Amy

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
v-xicai
Community Support
Community Support

Hi  @Anonymous  ,

 

Does that make sense? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

Anonymous
Not applicable

Thanks @v-xicai .

 

We are working to find a permanent&proper  solution this.Your idea definitely helped us.Thanks for your time.

 

For the time being, we will do it manually.

v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

It is unavailable to get such a different config files for the same .pbix file in Power BI currently. You can come up a new idea about that , and add your comments there to improve Power BI for making this feature coming sooner.

 

As a workaround, you may publish the same .pbix file to your goal workspaces, then change the parameters about the Azure SQ DB credentials in different workspaces in Power BI Service.

85.png

 

Best Regards,

Amy

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Can you describe what is your final goal in more detail?

 

Why do you need to use SQL credentials dynamically?

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Anonymous
Not applicable

Thanks @Mariusz  for your quick response.

 

We have 3 environments(workspace) and we want to use a config file or similar thing which will store DB details.When the reports will be pubslushed to Power BI service, we will use the same .pbix file with a different Config file.So that, don't have to open the file everytime and change the DB details for different environments. 

Hi @Anonymous 

 

You store your credentials is gateway connection, so you don't need to pass it as parameters

 

Best Regards,
Mariusz


 

Anonymous
Not applicable

Hi @Mariusz 

My Database is in cloud.Why do I need a Gateway?

 

Could you please elaborate.

Hi @Anonymous 

 

Yes, you mentioned Azure sorry, it will be data source credentials in you data source setting I guess.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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