Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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

Reply
JohnAG
Frequent Visitor

Create a Table in SQL Analytics EndPoint

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. 

JohnAG_0-1701908434285.png

 



 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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:

Custom SQL objects in lake databases

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

vgchennamsft_0-1701938373981.png

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

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:

Custom SQL objects in lake databases

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

vgchennamsft_0-1701938373981.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.