We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4561708 commit bf05c7dCopy full SHA for bf05c7d
1 file changed
sp_IndexCleanup/sp_IndexCleanup.sql
@@ -5236,14 +5236,14 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5236
ir.table_name,
5237
ir.index_name,
5238
/* Then show relationship information */
5239
- ir.consolidation_rule,
5240
- ir.target_index_name,
+ consolidation_rule = ISNULL(ir.consolidation_rule, N'N/A'),
+ target_index_name = ISNULL(ir.target_index_name, N'N/A'),
5241
/* Include superseded_by info for winning indexes */
5242
superseded_info =
5243
CASE
5244
WHEN ia.superseded_by IS NOT NULL
5245
THEN ia.superseded_by
5246
- ELSE ir.superseded_info
+ ELSE ISNULL(ir.superseded_info, N'N/A')
5247
END,
5248
/* Add size and usage metrics */
5249
index_size_gb =
0 commit comments