How to get sql text after run

Original text of this message