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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
GustavoSouza
Frequent Visitor

PowerBi SQL Sever

Hi, could someone help me? I would like to connect to an SQL database, however, would I like to be able to change that database on the back end? Or instead of connecting to the bank indicating the bank name, connect using a connection string (from web.config). Any tips? 

 

Is it possible for the same PowerBi to be used with more than one database? WebConfig bank.

 

abc.png

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @GustavoSouza ,

1.You can try to create a parameter in Query Editor to solve your database name, when you connect to data source, just transfer the value in the parameter to connect

new parameter.pngparameter.pngdatabase parameter.png

 

2.You can use more than one databases in the same power bi if the connection mode is Import or Direct Query.

 

Best Regards,

Yingjie Li

 

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

2 REPLIES 2
v-yingjl
Community Support
Community Support

Hi @GustavoSouza ,

1.You can try to create a parameter in Query Editor to solve your database name, when you connect to data source, just transfer the value in the parameter to connect

new parameter.pngparameter.pngdatabase parameter.png

 

2.You can use more than one databases in the same power bi if the connection mode is Import or Direct Query.

 

Best Regards,

Yingjie Li

 

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

Hi, thank you very much for responding. I haven't had time to test yet, but as soon as I get it, I'll leave feedback here.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

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.