Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Can a trigger be used to cancel an update or delete?
Thu, Dec 11 2008 12:53 PMPermanent Link

Dale Derix
Can a trigger be used to cancel an update or delete?  If so, how?

Thanks,

Dale
Thu, Dec 11 2008 2:47 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Dale,

<< Can a trigger be used to cancel an update or delete?  If so, how? >>

Yep, just use the RAISE statement to raise an EXCEPTION from inside of a
BEFORE UPDATE or BEFORE DELETE trigger, and that will interrupt the update
or delete and return the error.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image