When I run an SQL trace I want to see the TSQL statements that are executed. I chose all the TSQL events to show. For most like "SQL:StmtStarting" I can see the TSQL but for "Exec prepared SQL" the TextData is blank.
Any ideas? I want to see the query that will be executed.
TIA
SQL:StmtStarting should give you the text of your TSQL every time. You should not even need any of the other options if all you want is to see the TSQL that will be executed? Are you saying that you are running TSQL queries and not seeing them with this option?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With