cancel
Showing results for 
Search instead for 
Did you mean: 

Last execution time of SP in HANA

Former Member
0 Kudos

Can we find last execution time of stored procedure in any HANA table or view.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

hi,

You may find it by run following sql.

SELECT  LAST_EXECUTION_TIME  FROM "SYS"."M_SQL_PLAN_CACHE" WHERE STATEMENT_STRING LIKE '%<PROC NAME>%'

Regards,

Phoebe

Former Member
0 Kudos

This is only giving recent sql statements stored in cache. Table contains only last few hours data.