Skip to content

Commit

Permalink
output QueryText in XML like in sp_whoisactive
Browse files Browse the repository at this point in the history
  • Loading branch information
EitanBlumin committed Oct 3, 2023
1 parent 4a51128 commit 551f15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Monitoring Scripts/TempDB Space Utilization Check.sql
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ SELECT
, COALESCE(T1.[Net Allocation Internal Objects], 0) + T2.[Net Allocation Internal Objects] [Net Allocation Internal Objects]
, COALESCE(T1.[Total Allocation], 0) + T2.[Total Allocation] [Total Allocation]
, COALESCE(T1.[Net Allocation], 0) + T2.[Net Allocation] [Net Allocation]
, COALESCE(T1.[Query Text], T2.[Query Text]) [Query Text]
, (SELECT COALESCE(T1.[Query Text], T2.[Query Text]) FOR XML PATH(''), TYPE) [Query Text]
, DB_NAME(ses.database_id) [Database Name]
, ses.*
FROM
Expand Down

0 comments on commit 551f15a

Please sign in to comment.