15.10 - Dropping a Populated Database - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

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: