Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext 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
Hi,
Say you have a sql server with several databases within, one database for each customer/client. These databases have the same tables, same structure etc. How would go about developing a report which extracts the same query from every databases and uses the data as one data source, knowing the number of databases might change periodically, new customers/customers leaving ?
I know this a large question, let me see if I can break it up:
I hope my questions are clear and consice, any help would be appreciated.
Thank you.
First, I would wonder why you have a single database for each customer instead of one database with a field for customer to differentiate between them.
But...you should be able to access them individually using Power Query by using each database as a data source. Add a field for customer to each table pulled from each database so that when you merge each query together you can still tell which customer the data applies to. I don't believe that you can loop through them in Power Query, but someone who is stronger in that can offer guidance.
But again, your underlying is that you shouldn't be using separate databases for each customer...that is just creating problems for yourself.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 25 |