Skip to content

Commit 32ff196

Browse files
committed
Remove additional checks from validation
If someone wants to run this intentionally (locally) on one of the databases we filter out from a server-wide check, we want to let them.
1 parent b36a53d commit 32ff196

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sp_BlitzIndex.sql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,7 @@ SELECT @DatabaseID = [database_id]
434434
FROM sys.databases
435435
WHERE [name] = @DatabaseName
436436
AND user_access_desc='MULTI_USER'
437-
AND state_desc = 'ONLINE'
438-
AND database_id > 4
439-
AND DB_NAME(database_id) NOT IN ('ReportServer','ReportServerTempDB')
440-
AND is_distributor = 0;
437+
AND state_desc = 'ONLINE';
441438

442439
/* Last startup */
443440
SELECT @DaysUptime = CAST(DATEDIFF(hh,create_date,getdate())/24. as numeric (23,2))

0 commit comments

Comments
 (0)