Added a temp table (#MissingIndexesFinalResult) to hold the final result after filtering has been applied to the original #MissingIndexes temp table. If the #MissingIndexesFinalResult is empty we only display "No missing indexes". Otherwise we display the content of the #MissingIndexesFinalResult table.
Added a temp table (#MissingIndexesFinalResult) to hold the final result after filtering has been applied to the original #MissingIndexes temp table. If the #MissingIndexesFinalResult is empty we only display "No missing indexes". Otherwise we display the content of the #MissingIndexesFinalResult table.