Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - SQL Usage » Stored Procedures and Triggers » Using procedures, triggers, and batches » Introduction to triggers

 

Dropping triggers

Once you create a trigger, it remains in the database until someone explicitly removes it. You must have ALTER permissions on the table associated with the trigger to drop the trigger.

♦  To delete a trigger (Sybase Central)
  1. Connect to the database as a user with DBA authority or as the owner of the trigger.

  2. In the left pane, double-click Triggers.

  3. Select the trigger and choose Edit » Delete.

  4. Click Yes.

♦  To delete a trigger (SQL)
  1. Connect to a database as a user with DBA authority or as the owner of the trigger.

  2. Execute a DROP TRIGGER statement.

Example

The following statement removes the mytrigger trigger from the database:

DROP TRIGGER mytrigger;
See also