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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Jan NL Carousel

Fabric Community Update - January 2025

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