You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sp_BlitzFirst.sql
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2955,7 +2955,7 @@ If one of them is a lead blocker, consider killing that query.'' AS HowToStopit,
2955
2955
'Wait Stats'AS FindingGroup,
2956
2956
wNow.wait_typeAS Finding, /* IF YOU CHANGE THIS, STUFF WILL BREAK. Other checks look for wait type names in the Finding field. See checks 11, 12 as example. */
'For '+CAST(((wNow.wait_time_ms-COALESCE(wBase.wait_time_ms,0)) /1000) ASNVARCHAR(100)) +' seconds over the last '+CASE @Seconds WHEN0THEN (CAST(DATEDIFF(dd,@StartSampleTime,@FinishSampleTime) ASNVARCHAR(10)) +' days') ELSE (CAST(@SecondsASNVARCHAR(10)) +' seconds') END+', SQL Server was waiting on this particular bottleneck.'+ @LineFeed + @LineFeed AS Details,
2958
+
'For '+CAST(((wNow.wait_time_ms-COALESCE(wBase.wait_time_ms,0)) /1000) ASNVARCHAR(100)) +' seconds over the last '+CASE @Seconds WHEN0THEN (CAST(DATEDIFF(dd,@StartSampleTime,@FinishSampleTime) ASNVARCHAR(10)) +' days') ELSE (CAST(DATEDIFF(ss, wBase.SampleTime, wNow.SampleTime)ASNVARCHAR(10)) +' seconds') END+', SQL Server was waiting on this particular bottleneck.'+ @LineFeed + @LineFeed AS Details,
2959
2959
'See the URL for more details on how to mitigate this wait type.'AS HowToStopIt,
2960
2960
((wNow.wait_time_ms-COALESCE(wBase.wait_time_ms,0)) /1000) AS DetailsInt
2961
2961
FROM #WaitStats wNow
@@ -2975,7 +2975,7 @@ If one of them is a lead blocker, consider killing that query.'' AS HowToStopit,
'For '+CAST(((wNow.wait_time_ms-COALESCE(wBase.wait_time_ms,0)) /1000) ASNVARCHAR(100)) +' seconds over the last '+CASE @Seconds WHEN0THEN (CAST(DATEDIFF(dd,@StartSampleTime,@FinishSampleTime) ASNVARCHAR(10)) +' days') ELSE (CAST(@SecondsASNVARCHAR(10)) +' seconds') END+', SQL Server was waiting on this particular bottleneck.'+ @LineFeed + @LineFeed AS Details,
2978
+
'For '+CAST(((wNow.wait_time_ms-COALESCE(wBase.wait_time_ms,0)) /1000) ASNVARCHAR(100)) +' seconds over the last '+CASE @Seconds WHEN0THEN (CAST(DATEDIFF(dd,@StartSampleTime,@FinishSampleTime) ASNVARCHAR(10)) +' days') ELSE (CAST(DATEDIFF(ss, wBase.SampleTime, wNow.SampleTime)ASNVARCHAR(10)) +' seconds') END+', SQL Server was waiting on this particular bottleneck.'+ @LineFeed + @LineFeed AS Details,
2979
2979
'See the URL for more details on how to mitigate this wait type.'AS HowToStopIt,
2980
2980
((wNow.wait_time_ms-COALESCE(wBase.wait_time_ms,0)) /1000) AS DetailsInt
0 commit comments