cancel
Showing results for 
Search instead for 
Did you mean: 

Trace Operator()

Vivek-RR
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi

I tried using the TRACE operator to debug and find the intermediate results. But

the temporary table SQLSCRIPT_TRACE  is always blank.

CREATE PROCEDURE ZVIV.TEstTRACEOP11  AS

BEGIN

tst = select PROD AMOUNT FROM ZVIV.SALES WHERE O_ID = 'O01';

trc = TRACE(:tst);

trc1 = SELECT * FROM :tst;

END;

Is there some configuration to be done @ Administration->Trace Configuration ->Global database trace?

Regards

Vivek

Accepted Solutions (1)

Accepted Solutions (1)

lbreddemann
Active Contributor
0 Kudos

Hi Vivek,

as discussed - this seems to be a new bug in current revisions.

- Lars

Vivek-RR
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks Lars..

Answers (1)

Answers (1)

former_member182114
Active Contributor
0 Kudos

Hi Vivek,

Is this sample code your complete code?

I'd say that HANA optimizer "understood" that you don't have any usage of trc1 and also tst is discarded...

If this is not your complete code, try put trc1 as output of your procedure.

Also later make another test using same name:

tst = TRACE(:tst);

Regards, Fernando Da Ros