DROP EXTERNAL TABLE
removes an external table
What changes
- Input
- external data source and file format
- Output or change
- external table definition over files or remote data
Syntax at a glance
DROP EXTERNAL TABLE { database_name.schema_name.table_name | schema_name.table_name | table_name } [;]
Work example
An external table definition is retired after its consumers move to a new source.
Find reports, procedures, and jobs that reference the table before removing its metadata.
Check your work All consumers use the replacement and the external files remain governed by their data owner.
Open Microsoft Learn for full syntax, permissions, and details for your version.