17.00 - Dropping a Populated Database - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Release Date
September 2020
Content Type
Programming Reference
Publication ID
B035-1144-170K
Language
English (United States)

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: