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 bdca254

Browse files
Merge pull request BrentOzarULTD#1287 from BrentOzarULTD/issue_1138/brent
BrentOzarULTD#1138 sp_BlitzIndex correcting number of NCLs on blocked indexes
2 parents 3f0f962 + efd02bd commit bdca254

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎sp_BlitzIndex.sql‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,7 @@ BEGIN;
21512151
N'http://BrentOzar.com/go/AggressiveIndexes' AS URL,
21522152
i.db_schema_object_indexid + N': ' +
21532153
sz.index_lock_wait_summary + N' NC indexes on table: ' +
2154-
CAST(SUM(CASEWHEN index_id NOTIN (0,1) THEN1ELSE0END)
2154+
CAST(COALESCE((SELECTSUM(1) FROM #IndexSanity iMe INNER JOIN #IndexSanity iOthers ONiMe.database_id=iOthers.database_idANDiMe.object_id=iOthers.object_idANDiOthers.index_id>1WHEREi.index_sanity_id=iMe.index_sanity_id),0)
21552155
AS NVARCHAR(30)) AS details,
21562156
i.index_definition,
21572157
i.secret_columns,
@@ -2176,7 +2176,7 @@ BEGIN;
21762176
N'http://BrentOzar.com/go/AggressiveIndexes' AS URL,
21772177
i.db_schema_object_indexid + N': ' +
21782178
sz.index_lock_wait_summary + N' NC indexes on table: ' +
2179-
CAST(SUM(CASEWHEN index_id NOTIN (0,1) THEN1ELSE0END)
2179+
CAST(COALESCE((SELECTSUM(1) FROM #IndexSanity iMe INNER JOIN #IndexSanity iOthers ONiMe.database_id=iOthers.database_idANDiMe.object_id=iOthers.object_idANDiOthers.index_id>1WHEREi.index_sanity_id=iMe.index_sanity_id),0)
21802180
AS NVARCHAR(30)) AS details,
21812181
i.index_definition,
21822182
i.secret_columns,

0 commit comments

Comments
(0)

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