- Olaf Bönning
- PowerBuilder
- Friday, 19 January 2024 10:51 AM UTC
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
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.