Editing an ASE Trigger

Edit a trigger to change the name, trigger events, and other properties.

Prerequisites 

Before you can edit a trigger, be sure the data server that contains the trigger is running, and you created and established a connection to the data server.

  1. In the Databases folder in Enterprise Explorer, under the database connection profile, expand the Databases folder, and then expand the tree for a database and then the tree for the appropriate schema owner.
  2. Expand the table that contains the trigger.
  3. Under the Triggers folder, right-click the trigger, and choose Edit.
  4. Edit the trigger properties.
    Editor Tab Description
    General
    • Change the Name.
    • Disable the trigger by clicking Disable Trigger, which restricts the database from starting the trigger automatically.
    • Select For Update, For Insert, or For Delete to indicate the condition under which the trigger invokes when the associated table is modified.
    Source Manually edit the SQL code for the trigger in the Source tab. To display line numbers for the SQL code, right-click in the left margin, and select Show Line Numbers.
    DDL View the DDL for the trigger (read-only).
  5. Select File > Save from the main WorkSpace menu.
Related concepts
Triggers
Related tasks
Creating a SQL Anywhere Trigger
Creating an ASE Trigger
Editing a SQL Anywhere Trigger
Dropping a Trigger
Renaming a Trigger

For product-related issues, contact Sybase Technical Support at 1-800-8SYBASE. Send your feedback on this help topic directly to Sybase Technical Publications: pubs@sybase.com