显示标签为“residential”的博文。显示所有博文
显示标签为“residential”的博文。显示所有博文

2012年3月7日星期三

Disabling Trigger within a trigger?

Hi all,

I would like to disable a trigger within a trigger using...

ALTER TABLE RESIDENTIAL DISABLE TRIGGER UPDATE_SYSTEMS_RES

However it tells me that I cant disable a trigger within one. How can I get around this or is there another way of disabling a trigger.

Thanks
AnthonyYou will need to alter the code of your trigger to test if the trigger should do it's thing or bail. To my knowledge there is no way to disable a trigger from fireing while inside a trigger.