This script just combines existing scripts in the library related to reindexing tables, show statistics information and just added the table parameter as optional. It is nothing really new but I had a need for it and I thought someone else might as well.
The database name is mandatory, the table name is optional and based upon a LIKE statement.