I am trying to write some stored procedure having loops, and it is often taking long time to respond. I am often not even aware that at what part of loop they are currently running in? i wanted to track the values of variables to check the intermediate values.
How can i stop this execution in middle to track the values of variables?
Is there any other way i can control the execution of commands taking long time?