The following SQL script will rebuild all indexes for all tables in the named database.

Rebuild_Indexes.sql