Rebuilding an index drops and re-creates the index. This removes fragmentation, reclaims disk space by compacting the pages based on the existing fill factor setting, and reorders the index rows in contiguous pages:
Please see steps below, and perform with care:
- Open 'Microsoft SQL server management studio'
- First, ensure you make a backup of your SQL database.
- Then go to 'View | Object Explorer'
- Connect to your SQL Server Database Engine and then click + to expand the properties of the SQL server.
- Expand 'Databases', then expand the database for the site you are using
- Expand 'Tables'. You will now see a long list of tables. Expand the first table in the list which has a prefix 'dbo.', for example 'dbo.Additional Files'
- Right-click 'Indexes' and then click 'Rebuild All'.
- To start the rebuild operation, click 'OK'
- Repeat this process for all tables which contain an 'Indexes' folder.
http://technet.microsoft.com/en-us/library/ms187874.aspx