on 2013 May 28 10:10 AM
I have some triggers that call procedures that can "call" triggers. I would like to be able to know inside the procedures what calls have been done to get there. Is it possible to log the callstack?
Request clarification before answering.
If you are using SA 16 then you can use the new STACK_TRACE() function and related sa_stack_trace() procedure to get a stack trace of all of the the calls in the current stack.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For SQL Anywhere 16, see section "9. TRY CATCH And Friends" in Top 10 Cool New Features in SAP Sybase SQL Anywhere 16.
For SQL Anywhere 12 and earlier, see TRACEBACK().
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
60 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.