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:
Gianluca Sartori 2022-12-16 15:26:14 +01:00 committed by GitHub
parent 82555d3e1c
commit 37db046e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1134,6 +1134,7 @@ WHERE
[is_user_process] = 1
OR [status] COLLATE Latin1_General_BIN NOT IN (''background'', ''sleeping'')
)
AND [session_id] <> @@SPID --Exclude current SPID
)
OPTION(MAXDOP 1)'