Quantcast
Viewing all articles
Browse latest Browse all 15889

How to run the query and show the plan?

Hi All,

I am on SQL Server 2008.

I want to run a query and also see the plan which was used in that exact query run, on sql command prompt (not SSMS). How can I do that?

If I do "set showplan_text on" or "set showplan_all on", the query will NOT be executed and the plans (/details) will be displayed. That is not what I want.

Help please.


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>