• When the index is scripted, it doesn't include the schema, i.e. line 566:

    ' ON [' + [object_name] + ']'

    Should be

    ' ON [' + [schema_name] + '].[' + [object_name] + ']'

    And the same further down.

    Great script. Thanks