Chapter 5 Building Triggers and Procedures
Whether you use the automatic model option or rebuild triggers manually, all triggers that are based on a trigger template are rebuilt. These include:
Triggers are rebuilt when a change in the DBMS family is made
If you change the target DBMS family, for example from Sybase to Oracle or IBM DB2, triggers are automatically rebuilt.
When a trigger based on a trigger template is modified, it becomes user-defined. The Rebuild Triggers function does not create a trigger corresponding to a trigger template attached to a user-defined trigger if you select the "Preserve" mode.
If you wish to recreate a trigger based on the same trigger template you can:
For example, Trigger1 is based on template TrigTpl1. You modify Trigger1 so PowerDesigner turns it into a user-defined trigger. If you want to recreate a trigger based on TrigTpl1 you can click the User-defined button in the Definition page of the Trigger1 property sheet: you restore the trigger template code, but you lose the modifications on the trigger. You can also keep the changes performed on the trigger by selecting <None> in the trigger template dropdown listbox in the Definition page of the trigger property sheet. The trigger template is detached from the trigger and a new trigger based on this trigger template will be created the next time you rebuild triggers.
Copyright (C) 2005. Sybase Inc. All rights reserved. |