I like to log the begin and the end of an SQL statement because i like to measure the time the SELECT needed.
In datawindows i have the retrievestart and retrieveend events where i can exactly do what i wish to do.
In embedded SQL i use SQLCA which is defined by an transaction object (n_tr). There is no event like a retrievestart/retrieveend. The only event provided is the sqlpreview. Instead of embedded SQL i could implement and call an of_execute(as_sqlstatement). The problem is the huge amount of embedded SQL in our application. Like tens of thousands.
Anybody out there with a breathtaking idea?
Thank you very much in advance!
Olaf
Just to repeat info: The OP wants not only to trace the DW and DS execution times, but also the timing of embedded SQL. Like "How long did this sql to execute?".
Quote: "because i like to measure the time the SELECT needed."
regards.