sp_BlitzIndex


Job details

Name: sp_BlitzIndex
Platform: Sqlserver
Category: Performance extension (Brent Ozar)
Description: Runs the sp_BlitzIndex procedure (Brent Ozar) which analyzes the design and performance of your indexes.
Long description: Runs the sp_BlitzIndex procedure (Brent Ozar) which analyzes the design and performance of your indexes.
Version: 1.2
Default schedule: 5 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[maj_version > ‘2005′ & hasengine=‘YES’ & (engine_edition = ‘Microsoft SQL Server’ engine_edition = ‘Azure SQL Managed Instance’)]/blitz_obj_id/obj_name[id=‘sp_BlitzIndex’]/instance

Parameters

Name Default value Description
location of dbo.sp_BlitzIndex procedure master Name of the database where the dbo.sp_BlitzIndex procedure is located.
delete old output YES If set to “YES“ (default) old statistics from previous executions of sp_BlitzIndex procedure will be deleted.
return status when missing indexes 0 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when there are missing indexes.
@Mode 2 0=Diagnose, 1=Summarize, 2=Index Usage Detail, 3=Missing Index Detail, 4=Diagnose Details
@DatabaseName If you want to filter to a specific database. Defaults to current DB if not specified
@SchemaName Requires table_name as well.
@TableName Requires schema_name as well.
@Filter 0 0=no filter (default). 1=No low-usage warnings for objects with 0 reads. 2=Only warn for objects >= 500MB.
@SkipPartitions 0
@SkipStatistics 1
@GetAllDatabases 0
@BringThePain Bring the pain.
@OutputDatabaseName If you want to output information to a specific database. This is input parameter to the sp_BlitzIndex procedure.
@OutputSchemaName dbo Specify a schema name to output information to a specific Schema. This is input parameter to the sp_BlitzIndex procedure.
@OutputTableName BlitzIndex Specify table name to output information to a specific table. This is input parameter to the sp_BlitzIndex procedure.
@IgnoreDatabases Comma-delimited list of databases you want to skip.
@ThresholdMB 250 Number of megabytes that an object must be before we include it in basic results.
@OutputType TABLE
@IncludeInactiveIndexes 0 Will skip indexes with no reads or writes.
@ShowAllMissingIndexRequests 0 Will make all missing index requests show up.
@SortOrder Only affects @Mode = 2.
@SortDirection DESC Only affects @Mode = 2.
max history records 1000 Maximum number of records in the history table tab_histr_sp_blitzIndex.

Job Summary

EXEC sp_BlitzIndex @Mode = 2;

Job Details

Dependencies

Implementation Overview

Presentation of Data

Upgrade and Installation Considerations

Express Install and Compatibility Check

Overall, this dbWatch job ensures comprehensive tracking and analysis of index performance, aiding in efficient database management and optimization.