Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
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
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)
hi,
Is there an option to aviod manuel switching between database ?
cordially
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
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 22 | |
| 21 | |
| 13 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 45 | |
| 45 | |
| 30 |