SQL Server: After execution discard a result of the Query

I am describing basic help of SSMS to discard the result of query after it executes in SQL Server.

I was testing my SQL query performance with the 10000000 records and enable execution plan.
I have found that SQL Query Window is taking very high memory resource and taking too much time to display all this data into our result grid.

I just want to check execution plan of that query, but unfortunately it was taking more time.

We have one option in SSMS, using this we can discard the result of a query after execution.

You can find this menu, Tools -> Options -> Query Results -> SQL Server -> Results to Grid Tab and check mark the ” Discard results after execution ” option.

Note: This option is applied in your new query window so do not test any query in existing open query window.

SQL Server Discard Query Result

Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.

I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.

More from dbrnd.com

Leave a Reply

1 Comment on "SQL Server: After execution discard a result of the Query"

Notify of

Sort by:   newest | oldest | most voted
Andrew Meger
Andrew Meger
9 months 2 days ago

Good article, thanks.