SQL Server Triggers Question:

Explain Syntax for viewing, dropping and disabling triggers?

Tweet Share WhatsApp

Answer:

View trigger:

A trigger can be viewed by using sp_helptrigger syntax. This returns all the triggers defined in a table.

Sp_helptrigger table_name

Drop a trigger
Syntax: DROP TRIGGER Trigger_name

Disable a trigger:-
Syntax: DISABLE TRIGGER [schema name] trigger name
ON [object, database or ALL server ]

Download MS SQL Server Triggers PDF Read All 10 MS SQL Server Triggers Questions
Previous QuestionNext Question
Describe triggers features and limitations?Determine how to use the inserted and deleted pseudo tables?