mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 17:22:59 -05:00
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:
8
samples/sp_whoIsActive/src/sql/memoryDelta.sql
Normal file
8
samples/sp_whoIsActive/src/sql/memoryDelta.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'sp_WhoIsActive')
|
||||
EXEC sp_WhoIsActive
|
||||
@delta_interval = 1,
|
||||
@output_column_list = '[session_id][used_memory_delta]',
|
||||
@sort_order = '[used_memory_delta] DESC'
|
||||
ELSE
|
||||
SELECT 0;
|
||||
GO
|
||||
Reference in New Issue
Block a user