Example: Using TriggersV - Teradata VantageCloud Lake

Lake - Database Reference

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
ohi1683672393549.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
ohi1683672393549
The following SELECT returns this information:
  • Name of the database in which the triggering table is defined for those cases in which a trigger is defined in a different database than the triggering table
  • Names of the triggering tables
  • Names of the database in which the trigger is defined
  • Trigger names

This query identifies those triggers for which the trigger must be dropped if the database containing the triggering table is deleted.

SELECT SubjectTableDatabaseName, TableName, DatabaseName, TriggerName
   FROM TriggersV
   WHERE DatabaseName <> SubjectTableDatabaseName
   ORDER BY 1, 2, 3, 4;