Determine caller within stored proc or trigger
Posted
by Mike Clark
on Stack Overflow
See other posts from Stack Overflow
or by Mike Clark
Published on 2010-06-14T17:08:05Z
Indexed on
2010/06/14
17:12 UTC
Read the original article
Hit count: 234
I am working with an insert trigger within a Sybase database. I know I can access the @@nestlevel to determine whether I am being called directly or as a result of another trigger or procedure.
Is there any way to determine, when the nesting level is deeper than 1, who performed the action causing the trigger to fire?
For example, was the table inserted to directly, was it inserted into by another trigger and if so, which one.
© Stack Overflow or respective owner