• Jeff,

    The following lines in the SP exclude the primary key and any indexes that are created via adding a unique constraint rather than adding a unique index.

    AND SI.is_primary_key = 0

    AND SI.is_unique_constraint = 0