@@ -20,17 +20,17 @@ ALTER PROCEDURE dbo.sp_BlitzIndex
20
20
/* Note:@Mode doesn't matter if you're specifying schema_name and @TableName.*/
21
21
@Filter TINYINT = 0 , /* 0=no filter (default). 1=No low-usage warnings for objects with 0 reads. 2=Only warn for objects >= 500MB */
22
22
/* Note:@Filter doesn't do anything unless @Mode=0*/
23
- @SkipPartitions BIT = 0 ,
24
- @SkipStatistics BIT = 1 ,
23
+ @SkipPartitions BIT = 0 ,
24
+ @SkipStatistics BIT = 1 ,
25
25
@GetAllDatabases BIT = 0 ,
26
26
@BringThePain BIT = 0 ,
27
27
@ThresholdMB INT = 250 /* Number of megabytes that an object must be before we include it in basic results */ ,
28
28
@OutputServerName NVARCHAR (256 ) = NULL ,
29
29
@OutputDatabaseName NVARCHAR (256 ) = NULL ,
30
30
@OutputSchemaName NVARCHAR (256 ) = NULL ,
31
31
@OutputTableName NVARCHAR (256 ) = NULL ,
32
- @Help TINYINT = 0 ,
33
- @VersionDate DATETIME = NULL OUTPUT
32
+ @Help TINYINT = 0 ,
33
+ @VersionDate DATETIME = NULL OUTPUT
34
34
WITH RECOMPILE
35
35
AS
36
36
SET NOCOUNT ON ;
@@ -685,6 +685,7 @@ BEGIN TRY
685
685
N ' If you'' re sure you want to do this, run again with the parameter @BringThePain = 1.' ,
686
686
' http://FirstResponderKit.org' , ' ' , ' ' , ' ' , ' '
687
687
);
688
+
688
689
689
690
SELECT bir .blitz_result_id ,
690
691
bir .check_id ,
@@ -1022,7 +1023,7 @@ BEGIN TRY
1022
1023
EXEC sp_executesql @dsql, N ' @RowcountOUT BIGINT OUTPUT' , @RowcountOUT = @Rowcount OUTPUT ;
1023
1024
IF @Rowcount > 100
1024
1025
BEGIN
1025
- RAISERROR (N ' Setting @SkipPartitions = 1 because > 100 partitions were found. To check them, you must set @BringThePain = 1.' ,0 ,1 ) WITH NOWAIT ;
1026
+ RAISERROR (N ' Setting @SkipPartitions = 1 because > 100 partitions were found. To check them, you must set @BringThePain = 1.' ,16 ,1 ) WITH NOWAIT ;
1026
1027
SET @SkipPartitions = 1 ;
1027
1028
INSERT #BlitzIndexResults ( Priority, check_id, findings_group, finding, URL , details, index_definition,
1028
1029
index_usage_summary, index_size_summary )
0 commit comments