How to stop a query in SQL server

Developers can stop the query if it has not already finished, or if they see that the query is taking too long or is not returning the results they expect. When developers working with SQL Server “Denali”, MS SQL Server 2008 R2 and MS SQL Server 2005 want to stop a query, they should do the next:

– Right-click anywhere in the Results pane, on the shortcut menu point to Pane, and then click Clear Results.