Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I would like to transfer tables to a different schema than [dbo] after loading it to a Warehouse with Dataflow gen 2. Is it safe to run ALTER SCHEMA in a SQL query in from Fabric Synapse Warehouse?
T-SQL surface area - Microsoft Fabric | Microsoft Learn
Solved! Go to Solution.
Hi @BiJoe
Thanks for using Fabric Community.
While ALTER SCHEMA exists in Transact-SQL, it's not recommended to use it in a Fabric Synapse Warehouse for transferring tables between schemas. Here's why:
Limitations of ALTER SCHEMA in Fabric Synapse Warehouse:
I tried to repro using this SQL code:
The code ran successfully. The table's schema also got changed. But when Iam trying to load the data, its giving me an error.
So, I wouldnt suggest you to alter the schema. Instead create a clone of the table using the new schema. You can do this by following the below steps:
For more information please refer to this link:
https://learn.microsoft.com/en-us/fabric/data-warehouse/clone-table
This will create a copy of the table. You can delete the dbo.Table after creating the clone.
Hope this helps. Please let me know if you have any further questions.
Hi @BiJoe
Thanks for using Fabric Community.
While ALTER SCHEMA exists in Transact-SQL, it's not recommended to use it in a Fabric Synapse Warehouse for transferring tables between schemas. Here's why:
Limitations of ALTER SCHEMA in Fabric Synapse Warehouse:
I tried to repro using this SQL code:
The code ran successfully. The table's schema also got changed. But when Iam trying to load the data, its giving me an error.
So, I wouldnt suggest you to alter the schema. Instead create a clone of the table using the new schema. You can do this by following the below steps:
For more information please refer to this link:
https://learn.microsoft.com/en-us/fabric/data-warehouse/clone-table
This will create a copy of the table. You can delete the dbo.Table after creating the clone.
Hope this helps. Please let me know if you have any further questions.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Data Engineering, Data Science, Data Warehouse and General Discussion.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |