drop trigger

Description

Removes a trigger.

Syntax

drop trigger [owner.]trigger_name 
	[, [owner.]trigger_name] ...

Parameters

trigger_name

is the name of the trigger to drop. Specify the owner’s name to drop a trigger of the same name owned by a different user in the current database. The default value for owner is the current user.

Examples

Example 1

Removes trigger1 from the current database:

drop trigger trigger1

Usage

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

drop trigger permission defaults to the trigger owner and is not transferable.

Auditing

Values in event and extrainfo columns of sysaudits are:

Event

Audit option

Command or access audited

Information in extrainfo

29

drop

drop trigger

  • Roles – current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – NULL

  • Proxy information – original login name, if set proxy is in effect

See also

Commands create trigger

System procedures sp_depends, sp_help, sp_helptext