Removes a trigger.
drop trigger [owner.]trigger_name [, [owner.]trigger_name] ...
drop trigger trigger1
drop trigger drops a trigger in the current database.
You need not explicitly drop a trigger from a table to create a new trigger for the same operation (insert, update, or delete). In a table or column, each new trigger for the same operation overwrites the previous one.
When a table is dropped, the SAP ASE server automatically drops any triggers associated with it.
See also sp_depends, sp_help, sp_helptext in Reference Manual: Procedures.
ANSI SQL – Compliance level: Transact-SQL extension.
The permission checks for drop trigger differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be the trigger owner or a user with drop any trigger privilege. |
Disabled | With granular permissions disabled, you must be the trigger owner or a user with sa_role. |
Values in event and extrainfo columns of sysaudits are:
Information | Values |
---|---|
Event | 29 |
Audit option | drop |
Command or access audited | drop trigger |
Information in extrainfo |
|