The below command will rebuild all indexes on a database.
We need to run the below command in the context of each database that is of interest.
Finding missing indexes in sql server 2005
the following scripts helps in finding top 5 missing indexes using the new feature of DMV available in SQl Server 2005
2007-07-19 (first published: 2006-10-23)
5,361 reads