Dimanoid
Dimanoid

Reputation: 7289

How to determine which stored procedure called another procedure?

I have some procedures that calls another procedure with different parameters. Is there a way in that procedure to know who called it? Some kind of stacktrace...

Upvotes: 1

Views: 70

Answers (1)

cincura.net
cincura.net

Reputation: 4150

I would recommend finding a cleaner way to solve what are you trying to solve, like passing extra parameter to identify what you need to.

Anyway you can use MON$CALL_STACK to get, probably, what you're looking for.

Upvotes: 1

Related Questions