Renaming a Trigger

Rename a trigger to change the title of the corresponding referential integrity constraint.

Prerequisites 

Before you can rename 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 navigation tree for the appropriate database and schema owner.
    Database Steps
    From an ASE connection profile
    1. Expand the Databases folder.
    2. Expand the tree for a database and then the tree for the appropriate schema owner.
    From a SQL Anywhere or Sybase IQ connection profile
    1. Expand the tree for a database.
    2. Expand the Schemas folder and then the tree for the appropriate schema owner.
  2. Expand the table that contains the trigger and then the Triggers folder, and find the trigger you want to rename.
  3. Right-click the trigger, and choose Rename.
  4. Enter a new name for the trigger, and click OK.
    Note: Do not use spaces in object names. Spaces could cause the renaming to fail.
Related concepts
Triggers
Related tasks
Creating a SQL Anywhere Trigger
Creating an ASE Trigger
Editing a SQL Anywhere Trigger
Editing an ASE Trigger
Dropping a Trigger


Created June 25, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com