Dropping a Populated Database - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

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: