If you have to optimize a lot of tables and indexes. You could create a SQL script, which then could be scheduled.
If you are a SQL Server administrator or just working with it, these commands would be use full for you.
ALTER INDEX
Modifies an existing table or view index (relational or XML) by disabling, rebuilding, or reorganizing the index; or by setting options on the index.