Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4560b27

Browse files
BrentOzarULTD#1187 sp_BlitzIndex raise error for >100 partitions
We were raising it with severity 0, but now do 16 to make it clear that data won’t be complete. Closes BrentOzarULTD#1187.
1 parent 03b55d4 commit 4560b27

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎sp_BlitzIndex.sql‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ ALTER PROCEDURE dbo.sp_BlitzIndex
2020
/*Note:@Mode doesn't matter if you're specifying schema_name and @TableName.*/
2121
@Filter TINYINT = 0, /* 0=no filter (default). 1=No low-usage warnings for objects with 0 reads. 2=Only warn for objects >= 500MB */
2222
/*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,
2525
@GetAllDatabases BIT = 0,
2626
@BringThePain BIT = 0,
2727
@ThresholdMB INT = 250 /* Number of megabytes that an object must be before we include it in basic results */,
2828
@OutputServerName NVARCHAR(256) = NULL ,
2929
@OutputDatabaseName NVARCHAR(256) = NULL ,
3030
@OutputSchemaName NVARCHAR(256) = NULL ,
3131
@OutputTableName NVARCHAR(256) = NULL ,
32-
@Help TINYINT = 0,
33-
@VersionDate DATETIME = NULL OUTPUT
32+
@Help TINYINT = 0,
33+
@VersionDate DATETIME = NULL OUTPUT
3434
WITH RECOMPILE
3535
AS
3636
SET NOCOUNT ON;
@@ -685,6 +685,7 @@ BEGIN TRY
685685
N'If you''re sure you want to do this, run again with the parameter @BringThePain = 1.',
686686
'http://FirstResponderKit.org', '', '', '', ''
687687
);
688+
688689

689690
SELECT bir.blitz_result_id,
690691
bir.check_id,
@@ -1022,7 +1023,7 @@ BEGIN TRY
10221023
EXEC sp_executesql @dsql, N'@RowcountOUT BIGINT OUTPUT', @RowcountOUT = @Rowcount OUTPUT;
10231024
IF @Rowcount > 100
10241025
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;
10261027
SET @SkipPartitions = 1;
10271028
INSERT #BlitzIndexResults ( Priority, check_id, findings_group, finding, URL, details, index_definition,
10281029
index_usage_summary, index_size_summary )

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /