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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jkalkbrenner
Frequent Visitor

Fabric Lakehouse Drop Table

I receive the below error when I run 'drop table [dbo].[tablename]' in a Lakehouse.
What am I doing wrong?

 

Msg 368, Level 14, State 1, Line 1
The external policy action 'Microsoft.Sql/Sqlservers/Databases/Schemas/Tables/Drop' was denied on the requested resource.
Msg 3701, Level 14, State 20, Line 1
Cannot drop the table '<table name>', because it does not exist or you do not have permission.
Statement ID: {EDB6B91A-18D2-4654-A0D0-7C8771B934A7}

Completion time: 2023-06-28T16:02:43.1676935-04:00

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @jkalkbrenner 

 

In order to drop a table in the Lakehouse you have to use a Notebook to do this. The SQL Endpoint for a lakehouse is ready only.

 

Here it the code to do this in the Notebook

# Syntax of DROP
DROP TABLE tableName




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

6 REPLIES 6
GilbertQ
Super User
Super User

Hi @jkalkbrenner 

 

In order to drop a table in the Lakehouse you have to use a Notebook to do this. The SQL Endpoint for a lakehouse is ready only.

 

Here it the code to do this in the Notebook

# Syntax of DROP
DROP TABLE tableName




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hello @GilbertQ I am having this same error in CREATE command and don't know how to use Notebook in wharehouse (SQLEndpoint) 

Could you please assist me

Hi @hello_ 

 

If you are using the Warehouse then you will have to do it in the Warehouse view.

 

GilbertQ_0-1717054763385.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hello @GilbertQ , something is strange like, 
1 - when I am in ( Lake | Wherehouse ) and writing in wherehour i am having error but 

2 - when I am in ( Wherehouse ) and writing all seems to be fine 

 

For now i directly created a whereHouse and working on it   

Hi @hello_ 

 

Yes because you can drop tables in a Warehouse via SQL but NOT in a Lakehouse.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Thank you @GilbertQ !
Spark SQL did indeed drop the table!

drop table <lakehousename>.<tablename>

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.