‎2016 Aug 19 2:46 PM
Hi all,
I have a requirement where I need to catch all queries (SELECT, INSERT, UPDATE, DELETE) being executed against the data base server from SAP server programmatically, anybody can advise on this?
Thanks
‎2016 Aug 20 10:00 PM
You could debug what is done during the SQL trace (transaction code ST05), and reproduce it into your program. There are probably many threads which discuss of that (search function module PERFORMANCE_TRACE_ON, PERFORMANCE_TRACE_GET, etc., there are also classes now to read the traces)
‎2016 Aug 21 7:46 AM
Thank you for your suggestion but I'm looking for something the runs continuously, not just when a trace is running.
‎2016 Aug 21 7:53 AM
No you can't do that, you would put the server down. Can you imagine how many SQL operations per second there are in the system! I can't imagine you have to trace everything, what is your exact requirement?
‎2016 Aug 21 8:04 AM
As far as I know ST04 is already doing that so why can't we have something similar?
‎2016 Aug 21 9:58 AM
So, if it's a tool in your database system, you should refer to the database editor's documentation or forum, to see where and how this trace is stored (not at the "ABAP side" anyway). If your ST04 tool displays the data, then same remark as above: "You could debug what is done during the [trace display], and reproduce it into your program"