Forum Discussion
Programmatic Data Sources?
- 2 years ago
Assuming a few things like:
- All databases come from the same server
- The same authentication / credentials used has access to all databases
- You have a logic in place to determine what tables to pick from each database correctly
You can use the SQL Database connector, enter just the server name and that will yield a table with all the available databases inside of the server. From there, you can create your own query with the custom logic of your own or even package your logic as a function that could run against every single database in that server and yield a single query that you could later sink / output / load to a destination of your choice.
The article below might be able to help you with how to create functions:
Using custom functions in Power Query - Power Query | Microsoft Learn
For the SQL Database connector, you can also simply use the function Sql.Databases:
Hi wcarter - Thanks for using Fabric Community,
As I understand you would like to check for possibility whether we can create dynamic database in warehouse (i.e. sink) using Data Flow Gen 2 in Fabric.
Inorder to understand clearly can you please share few more details of your ask?
I will be able to guide you better if you can share few more details.