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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
BiJoe
Helper II
Helper II

Truncate Warehouse SQL table

I have a working pipeline, pulling data from API, and using a Copy activity to load the data into a SQL table in Warehouse. I would like to truncate the rows before copying, but I can't seem to find the correct manner. I have tried TRUNCATE TABLE <table name> in the pre-copy script inside the copy activity, and a separate Script activity in the pipeline with same query in the "Non-query" script field. Either way I get "TRUNCATE TABLE is not a supported statement type." 

 

What am I missing here?

 

EDIT: A DROP TABLE <table name> statement works in the Script activity. So it's just the TRUNCATE statement not supported yet?

1 ACCEPTED SOLUTION
NandanHegde
Super User
Super User

Hey,

Truncate statement is yet not supported in warehouse for now.

You can use Delete statement/

https://joyfulcraftsmen.com/exploring-limitations-of-fabric-warehouse-3-key-observations/

View solution in original post

1 REPLY 1
NandanHegde
Super User
Super User

Hey,

Truncate statement is yet not supported in warehouse for now.

You can use Delete statement/

https://joyfulcraftsmen.com/exploring-limitations-of-fabric-warehouse-3-key-observations/

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Update Carousel

Fabric Monthly Update - April 2024

Check out the April 2024 Fabric update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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