Skip to content

Commit

Permalink
Update sp_BlitzIndex.sql (#2126)
Browse files Browse the repository at this point in the history
Fix Cannot resolve collation conflict between "Language_A" and "Language_B" in add operator occurring in ORDER BY statement column 3.
  • Loading branch information
chaowlert authored and BrentOzar committed Sep 25, 2019
1 parent bbe10f5 commit 65d8c87
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions sp_BlitzIndex.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2502,7 +2502,7 @@ BEGIN;
N'http://BrentOzar.com/go/AggressiveIndexes' AS URL,
i.db_schema_object_indexid + N': ' +
sz.index_lock_wait_summary + N' NC indexes on table: ' +
CAST(COALESCE((SELECT SUM(1)
COALESCE((SELECT SUM(1)
FROM #IndexSanity iMe
INNER JOIN #IndexSanity iOthers
ON iMe.database_id = iOthers.database_id
Expand All @@ -2511,8 +2511,7 @@ BEGIN;
WHERE i.index_sanity_id = iMe.index_sanity_id
AND iOthers.is_hypothetical = 0
AND iOthers.is_disabled = 0
), 0)
AS NVARCHAR(30)) AS details,
), 0) AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
Expand Down Expand Up @@ -2559,7 +2558,7 @@ BEGIN;
N'http://BrentOzar.com/go/AggressiveIndexes' AS URL,
i.db_schema_object_indexid + N': ' +
sz.index_lock_wait_summary + N' NC indexes on table: ' +
CAST(COALESCE((SELECT SUM(1)
COALESCE((SELECT SUM(1)
FROM #IndexSanity iMe
INNER JOIN #IndexSanity iOthers
ON iMe.database_id = iOthers.database_id
Expand All @@ -2568,8 +2567,7 @@ BEGIN;
WHERE i.index_sanity_id = iMe.index_sanity_id
AND iOthers.is_hypothetical = 0
AND iOthers.is_disabled = 0
),0)
AS NVARCHAR(30)) AS details,
),0) AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
Expand Down

0 comments on commit 65d8c87

Please sign in to comment.