Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a task manager of sorts for SQL Server 2008 and on?

Is there a task manager of sorts for SQL Server 2008 and on? A way to see what SQL server is doing, kill runaway queries, etc...

like image 829
Matt Avatar asked Jun 18 '10 21:06

Matt


1 Answers

select * 
from sys.sysprocesses

Should show you the processes running. Kill tasks is the

KILL <task> 

command

Note, this view (master.dbo.sysprocesses) is as a backward compatible view, so it might not be here in future SQL releases

like image 173
Sparky Avatar answered Sep 22 '22 20:09

Sparky