Forum Discussion

jkalkbrenner's avatar
jkalkbrenner
Frequent Visitor
3 years ago
Solved

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/Sqlserver...
  • GilbertQ's avatar
    3 years ago

    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