Skip to content

Commit fdeaa1b

Browse files
committed
Formatting
Etc.
1 parent 45ddfb2 commit fdeaa1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sp_BlitzIndex.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,12 +2511,13 @@ BEGIN;
25112511
GROUP BY database_name;
25122512

25132513
IF NOT (@Mode = 0)
2514-
INSERT #BlitzIndexResults ( check_id, index_sanity_id, Priority, findings_group, finding, URL, details, index_definition,
2514+
INSERT #BlitzIndexResults ( check_id, index_sanity_id, Priority, findings_group, finding, [database_name], URL, details, index_definition,
25152515
secret_columns, index_usage_summary, index_size_summary )
25162516
SELECT 30 AS check_id,
25172517
NULL AS index_sanity_id,
25182518
250 AS Priority,
25192519
N'Feature-Phobic Indexes' AS findings_group,
2520+
database_name AS [Database Name],
25202521
N'No indexes use includes' AS finding, 'http://BrentOzar.com/go/IndexFeatures' AS URL,
25212522
N'No indexes use includes' AS details,
25222523
database_name + N' (Entire database)' AS index_definition,
@@ -2584,7 +2585,7 @@ BEGIN;
25842585
FROM #filtered_index_count AS fic
25852586
JOIN #indexed_view_count AS ivc
25862587
ON ivc.database_name = fic.database_name
2587-
WHERE count_filtered_indexes = 0 AND count_indexed_views=0
2588+
WHERE count_filtered_indexes = 0 AND count_indexed_views = 0
25882589
OPTION ( RECOMPILE );
25892590
END;
25902591

0 commit comments

Comments
 (0)