Skip to content

Commit a4208fa

Browse files
authored
Merge pull request #3704 from ReeceGoding/modifications_before_auto_update-BIGINT
sp_BlitzIndex: Made modifications_before_auto_update a BIGINT
2 parents 363d0ed + ee7c4d3 commit a4208fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sp_BlitzIndex.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ IF OBJECT_ID('tempdb..#dm_db_index_operational_stats') IS NOT NULL
740740
histogram_steps INT NULL,
741741
modification_counter BIGINT NULL,
742742
percent_modifications DECIMAL(18, 1) NULL,
743-
modifications_before_auto_update INT NULL,
743+
modifications_before_auto_update BIGINT NULL,
744744
index_type_desc NVARCHAR(128) NULL,
745745
table_create_date DATETIME NULL,
746746
table_modify_date DATETIME NULL,
@@ -2310,7 +2310,7 @@ OPTION (RECOMPILE);';
23102310
ELSE ddsp.modification_counter
23112311
END AS percent_modifications,
23122312
CASE WHEN ddsp.rows < 500 THEN 500
2313-
ELSE CAST(( ddsp.rows * .20 ) + 500 AS INT)
2313+
ELSE CAST(( ddsp.rows * .20 ) + 500 AS BIGINT)
23142314
END AS modifications_before_auto_update,
23152315
ISNULL(i.type_desc, ''System Or User Statistic - N/A'') AS index_type_desc,
23162316
CONVERT(DATETIME, obj.create_date) AS table_create_date,
@@ -2401,7 +2401,7 @@ OPTION (RECOMPILE);';
24012401
ELSE si.rowmodctr
24022402
END AS percent_modifications,
24032403
CASE WHEN si.rowcnt < 500 THEN 500
2404-
ELSE CAST(( si.rowcnt * .20 ) + 500 AS INT)
2404+
ELSE CAST(( si.rowcnt * .20 ) + 500 AS BIGINT)
24052405
END AS modifications_before_auto_update,
24062406
ISNULL(i.type_desc, ''System Or User Statistic - N/A'') AS index_type_desc,
24072407
CONVERT(DATETIME, obj.create_date) AS table_create_date,

0 commit comments

Comments
 (0)