DROP DATABASE SQL Statement | Teradata Vantage - DROP DATABASE - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

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.

After a database is dropped, you cannot recover it by using the Dump and Restore utility unless it is restored.

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

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.