Chapter 5 Building Triggers and Procedures


Modifying Triggers

PowerDesigner provides various methods for editing a trigger. You can:

Note   Always work on a copy of your DBMS definition file
If you modify the definition of a DBMS trigger template or template item, you are modifying the DBMS definition file. We recommend that you only ever work on a copy of the original DBMS definition file.

Steps To modify a trigger:

  1. Open the trigger property sheet in one of the following ways:

  2. Click the Definition tab to display the trigger code.
  3. Enter the trigger definition code. You can attach a trigger template, add template items, use PDM variables and macros and various other tools available from the toolbar (see "Using the Definition tab toolbar").

    The trigger will be marked as user-defined and will be excluded from most forms of rebuilding (see "Rebuilding Triggers"), if you select the "Preserve" mode.
  4. You can also modify the trigger's other properties. For a full list of the properties available, see "Trigger properties".
  5. Click OK in each of the dialog boxes.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.