• Very nice script, thank you!

    I only added a new column name, just to be aware of the schema (I make a heavy use of the schema separation for security purposes)

    SELECT

    SCHEMA_NAME(o.schema_id) + '.' + OBJECT_NAME(i.object_id) AS FullTableName,

    ...