Add triggers using iSeries Navigator

Start of changeUsing iSeries™ Navigator, you can define system triggers and SQL triggers. Additionally, you can enable or disable a trigger on a physical database file.End of change

Start of changeA trigger is a set of actions that run automatically when a specified change operation is performed on a specified database file. In this discussion, a table is a physical file. The change or read operation can be an insert, update, or delete high-level language statement in an application program, or an SQL INSERT, UPDATE, or DELETE statement.End of change

To add a trigger, follow these steps:

  1. Start of changeFrom iSeries Navigator, expand your server Database > Schemas.End of change
  2. Click the library that contains the table to which you want to add the trigger.
  3. Start of changeRight-click the table to which you want to add the trigger and click New > Trigger.End of change
  4. Start of changeClick External to add a system trigger.End of change
  5. Start of changeClick SQL to add an SQL trigger.End of change
Related concepts
Trigger automatic events in your database
SQL triggers