Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredJoin us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered
Hi,
I need to copy several tables from a lakehouse to a warehouse and in order to accomplish a such task I'd like to implement a T-SQL stored procedure writing a dynamic loop.
Now, how I could do in a Fabric warehouse? Thanks
Solved! Go to Solution.
In case of meta data driven farmework, you would need a config table to manage the list of lakehouse table you want to copy into warehouse.
Then you can query the lakehouse within the warehouse:
https://www.linkedin.com/pulse/querying-lakehouse-data-from-warehouse-microsoft-fabric-jovan-popovic
And using While loop, you can write a dynamic stored procedure to iterate over the table list and clone them within warehouse via EXECUTE keyword
example : Execute('Select * from table 1')
rather than select you can write the clone command
In case of meta data driven farmework, you would need a config table to manage the list of lakehouse table you want to copy into warehouse.
Then you can query the lakehouse within the warehouse:
https://www.linkedin.com/pulse/querying-lakehouse-data-from-warehouse-microsoft-fabric-jovan-popovic
And using While loop, you can write a dynamic stored procedure to iterate over the table list and clone them within warehouse via EXECUTE keyword
example : Execute('Select * from table 1')
rather than select you can write the clone command
Hi @pmscorca
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.
In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help.
Thank you.
Hi @pmscorca
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others. If you have any question relating to the current thread, please do let us know and we will try out best to help you. In case if you have any other question on a different issue, we request you to open a new thread.
Thank you.
Hi @pmscorca
Glad that your query got resolved.
Please continue using Fabric Community for further queries.
Thank you.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
3 | |
3 | |
2 | |
2 | |
1 |