From 0b67a8c10877ab3081d3abb1311116d093e8f487 Mon Sep 17 00:00:00 2001 From: Stephane Scherrer <68731510+StefDBA@users.noreply.github.com> Date: Thu, 12 Aug 2021 12:43:27 +0200 Subject: [PATCH] fileid is a smallint based on sys.dm_db_log_info One of my customers has more than 800 files per database and the script crashes with tinyint --- BPCheck/Check_BP_Servers.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BPCheck/Check_BP_Servers.sql b/BPCheck/Check_BP_Servers.sql index fe8b9fb8..35ce2ef8 100644 --- a/BPCheck/Check_BP_Servers.sql +++ b/BPCheck/Check_BP_Servers.sql @@ -6701,7 +6701,7 @@ BEGIN DROP TABLE #log_info3; IF NOT EXISTS (SELECT [object_id] FROM tempdb.sys.objects (NOLOCK) WHERE [object_id] = OBJECT_ID('tempdb.dbo.#log_info3')) CREATE TABLE #log_info3 (recoveryunitid int NULL, - fileid tinyint, + fileid smallint, file_size bigint, start_offset bigint, FSeqNo int,