diff --git a/Install-All-Scripts.sql b/Install-All-Scripts.sql index ae1570bc0..46e58fea7 100644 --- a/Install-All-Scripts.sql +++ b/Install-All-Scripts.sql @@ -36346,7 +36346,8 @@ ALTER PROCEDURE [dbo].[sp_BlitzFirst] @Debug BIT = 0, @Version VARCHAR(30) = NULL OUTPUT, @VersionDate DATETIME = NULL OUTPUT, - @VersionCheckMode BIT = 0 + @VersionCheckMode BIT = 0, + @CheckStatisticsUpdatedRecently bit = 0 WITH EXECUTE AS CALLER, RECOMPILE AS BEGIN @@ -36830,7 +36831,7 @@ BEGIN /* We reuse this one by default rather than recreate it every time. */ CREATE TABLE ##WaitCategories ( - WaitType NVARCHAR(60) PRIMARY KEY CLUSTERED, + WaitType NVARCHAR(60) PRIMARY KEY CLUSTERED with(ignore_dup_key=on), WaitCategory NVARCHAR(128) NOT NULL, Ignorable BIT DEFAULT 0 ); @@ -38817,7 +38818,9 @@ If one of them is a lead blocker, consider killing that query.'' AS HowToStopit, END; /* IF @Seconds < 30 */ - /* Query Problems - Statistics Updated Recently - CheckID 44 */ + if @CheckStatisticsUpdatedRecently =1 + begin + /* Query Problems - Statistics Updated Recently - CheckID 44 */ IF (@Debug = 1) BEGIN RAISERROR('Running CheckID 44',10,1) WITH NOWAIT; @@ -38925,6 +38928,7 @@ If one of them is a lead blocker, consider killing that query.'' AS HowToStopit, FOR XML PATH('')); END + End /* Server Performance - Azure Operation Ongoing - CheckID 53 */ IF (@Debug = 1)