I have a slow query that I'm trying to analyze. MSDN says I can use
SET SHOWPLAN_TEXT ON
to get SQL Server to return the execution plan information for my query in text. However, whenever I try to SET SHOWPLAN and then execute my query, I get the message "the TDS protocol stream is not valid". I do not get this message if I simply select and execute my query.
Any idea why this is happening, and what I can do about it?
Note: I'm running this from SQLExplorer using JDBC, not FROM SQL Studio. Should that make a difference? TIA, Greg