Skip to content

Commit bf05c7d

Browse files
Update sp_IndexCleanup.sql
nulls look dumb in dark mode
1 parent 4561708 commit bf05c7d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sp_IndexCleanup/sp_IndexCleanup.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5236,14 +5236,14 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
52365236
ir.table_name,
52375237
ir.index_name,
52385238
/* Then show relationship information */
5239-
ir.consolidation_rule,
5240-
ir.target_index_name,
5239+
consolidation_rule = ISNULL(ir.consolidation_rule, N'N/A'),
5240+
target_index_name = ISNULL(ir.target_index_name, N'N/A'),
52415241
/* Include superseded_by info for winning indexes */
52425242
superseded_info =
52435243
CASE
52445244
WHEN ia.superseded_by IS NOT NULL
52455245
THEN ia.superseded_by
5246-
ELSE ir.superseded_info
5246+
ELSE ISNULL(ir.superseded_info, N'N/A')
52475247
END,
52485248
/* Add size and usage metrics */
52495249
index_size_gb =

0 commit comments

Comments
 (0)