How to trace SQL calls?

Original text of this message