• Hi,

    yes the code uses sys.indexes, which is database specific, so it needs to run in each database separately.

    Thanks

    Ian