Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server 2016 (13.x) and later
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
Removes a PolyBase external table from a database, but doesn't delete the external data.
Transact-SQL syntax conventions
DROP EXTERNAL TABLE { database_name.schema_name.table_name | schema_name.table_name | table_name }
[;]
[ database_name . [schema_name] . | schema_name . ] table_name
The one- to three-part name of the external table to remove. The table name can optionally include the schema, or the database and schema.
Requires:
Dropping an external table removes all table-related metadata. It doesn't delete the external data.
DROP EXTERNAL TABLE SalesPerson;
DROP EXTERNAL TABLE dbo.SalesPerson;
DROP EXTERNAL TABLE EasternDivision.dbo.SalesPerson;
The following example removes the ProductVendor1
table, its data, indexes, and any dependent views from the current database.
DROP EXTERNAL TABLE ProductVendor1;
The following example drops the SalesPerson
table in the EasternDivision
database.
DROP EXTERNAL TABLE EasternDivision.dbo.SalesPerson;
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today