The code will save all metadata information from a Table or database for restoring indexes and user created stats. Many times you want to restore a database or table,
This script will save all metadata related to the indexes for future used or storage.