16.20 - Dropping a Populated Database - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-24
dita:mapPath
wkf1512081455740.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

You cannot drop a populated database. To ensure that a database is empty:

  • Drop any hash or join indexes contained in any other databases or users that reference a table in the current database. See DROP INDEX, DROP HASH INDEX, and DROP JOIN INDEX.
  • Drop any triggers contained in any other databases or users that reference a table in the current database. See DROP MACRO.
  • Drop any journal tables in the current database. See MODIFY DATABASE.
  • Delete the database or drop all the objects within the database. See DELETE DATABASE.

For more information, see the appropriate statement or procedure call: