Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling a Trigger

Status
Not open for further replies.

jfield817

Programmer
Jun 2, 2000
153
US
Using SQL 7.0
How can one tell if a trigger on a table is disabled ...
I disabled a trigger but I can't find a system stored
procedure that provides info as to whether
the trigger is enabled or disabled.
Thanks
John
 
Use the ObjectProperty function.

If OBJECTPROPERTY(OBJECT_ID('TrgName'),
'ExecIsTriggerDisabled') = 1
Print 'Trigger is disabled"
Else
Print 'Trigger is enabled'
Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top