fix: Added own SPID filter to sqlserverqueries.go (#12387)
This filter has been set on all other source files (azureSqlDB and azureSqlMI) but not on the on-prem version
This commit is contained in:
parent
82555d3e1c
commit
37db046e06
|
|
@ -1134,6 +1134,7 @@ WHERE
|
||||||
[is_user_process] = 1
|
[is_user_process] = 1
|
||||||
OR [status] COLLATE Latin1_General_BIN NOT IN (''background'', ''sleeping'')
|
OR [status] COLLATE Latin1_General_BIN NOT IN (''background'', ''sleeping'')
|
||||||
)
|
)
|
||||||
|
AND [session_id] <> @@SPID --Exclude current SPID
|
||||||
)
|
)
|
||||||
OPTION(MAXDOP 1)'
|
OPTION(MAXDOP 1)'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue