Add the first version of whoisactive project (#943)

* add the first version of whoisactive

* address comments

* address comments

* fix the issues from the last commit

* clean up package.json
This commit is contained in:
Abbie Petchtes
2018-03-22 12:32:22 -07:00
committed by GitHub
parent 4cfd9bdbc0
commit 50c4fd79b7
35 changed files with 10130 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'sp_WhoIsActive')
EXEC sp_WhoIsActive
@output_column_list = '[session_id][CPU]',
@sort_order = '[CPU] DESC'
ELSE
SELECT 0;
GO