cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Aghiles89
Regular Visitor

How import data from the active SQL DATABASE?

hello,

We have two SQL database, primary and mirror, using BI Desktop i import data from the active database, but when the primary databse is down the second(mirror) becomes the principal. My question is how to automatically switch active SQL database connexion ?

 

THANKS IN ADVANCE

3 REPLIES 3
otravers
Community Champion
Community Champion

The SQL connector has a failover option:

https://docs.microsoft.com/en-us/power-query/connectors/sqlserver

https://www.youtube.com/watch?v=GBKVGWpvH6s (video for Azure SQL)

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals
Aghiles89
Regular Visitor

hi,

Is there an option to aviod manuel switching between database ?

cordially

v-cgao-msft
Community Support
Community Support

Hi @Aghiles89 ,

 

Please consider parameterized data sources and switch parameters manually when needed.

 

For more detailed steps, please refer to this Blog.

Power BI Desktop Query Parameters

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors