March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hey guys,
I'm new to SQL Analytics EndPoint under Microsoft Fabric, I have used Dataflow Gen2 to transform an excel file sitting in Lakehouse then sink the data in SQL Analytics EndPoint (Data Warehouse).
The data got added successfully under a table dbo.Response
However, I want the data to go under schema STR_Monthly_Excel.Responses
I found this script online to clone the table to a different schema, but it didn't work.
What am I doing wrong?
Is there a better way to create the STR_Monthly_Excel.Responses table?
Please see the image below and thank you for your help.
Solved! Go to Solution.
Hi @JohnAG ,
Thanks for using Fabric Community.
As I understand you would like to create a new schema in Lakehouse.
You can try using below code to transfer the schema, but I believe this is not a recommended approach.
ALTER SCHEMA newschemaname TRANSFER dbo.yourtablename
It seems to have some limitations when we use different schema.
Reference Text:
Lake databases allow creation of custom T-SQL objects, such as schemas, procedures, views, and the inline table-value functions (iTVFs). In order to create custom SQL objects, you MUST create a schema where you will place the objects. Custom SQL objects cannot be placed in dbo schema because it is reserved for the lake tables that are defined in Spark, database designer, or Dataverse.
Link :
https://learn.microsoft.com/en-us/azure/synapse-analytics/metadata/database
Creation of new schema is recommended in Data Warehouse but not in Lakehouse
Tables in data warehousing - Microsoft Fabric | Microsoft Learn
Hi @JohnAG ,
Thanks for using Fabric Community.
As I understand you would like to create a new schema in Lakehouse.
You can try using below code to transfer the schema, but I believe this is not a recommended approach.
ALTER SCHEMA newschemaname TRANSFER dbo.yourtablename
It seems to have some limitations when we use different schema.
Reference Text:
Lake databases allow creation of custom T-SQL objects, such as schemas, procedures, views, and the inline table-value functions (iTVFs). In order to create custom SQL objects, you MUST create a schema where you will place the objects. Custom SQL objects cannot be placed in dbo schema because it is reserved for the lake tables that are defined in Spark, database designer, or Dataverse.
Link :
https://learn.microsoft.com/en-us/azure/synapse-analytics/metadata/database
Creation of new schema is recommended in Data Warehouse but not in Lakehouse
Tables in data warehousing - Microsoft Fabric | Microsoft Learn
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
8 | |
4 | |
3 | |
2 | |
1 |
User | Count |
---|---|
8 | |
6 | |
5 | |
4 | |
4 |