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:
- DROP FUNCTION
- DROP PROFILE
- DROP ROLE
- SQLJ.Remove_Jar See Teradata Vantage™ - SQL External Routine Programming , B035-1147