DROP DATABASE SQL Statement | VantageCloud Lake - DROP DATABASE - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Drops the definition for an empty database from the Data Dictionary.

You must drop all the objects contained by that database before you can drop the database itself.

The drop operation verifies that the database is empty, verifies that the database does not own any other databases or users, drops the database, and adds the PERM and TEMP space that the drop makes available to that of the immediate owner database or user.

You cannot recover a dropped database by using the Dump and Restore utility without first restoring it.

To delete objects from a database, use the DELETE DATABASE statement. To delete objects from a user, use the DELETE USER statement.

ANSI Compliance

This statement is a Teradata extension to the ANSI SQL:2011 standard.

DROP DATABASE is functionally similar to the ANSI SQL:2011 statement DROP SCHEMA.

Required Privileges

You must have the DROP DATABASE privilege on the database to be dropped.