Enable/Disable trigger only if the trigger exists
690485Jul 26 2010 — edited Aug 2 2010Hi all,
This is may be a simple question.
I just want to write a SQL statement to enable/disable trigger only if that trigger exists....
I can disable it by running the below statement
ALTER TRIGGER MY_TRIGGER DISABLE;
But, if I run this statement where the trigger is not defined, throws an error.
Please advise me to disable or enable trigger based on its existance.