Difference between Index defrag and Index rebuild?
When you create an index in the database, the index information used by queries is stored in index pages. The sequential index pages are chained together by pointers from one page to the next. When changes are made to the data that affect the index, the information in the index can become scattered in the database. Rebuilding an index reorganizes the storage of the index data (and table data in the case of a clustered index) to remove fragmentation. This can improve disk performance by reducing the number of page reads required to obtain the requested data
DBCC INDEXDEFRAG – Defragments clustered and secondary indexes of the specified table or view.
| Print article | This entry was posted by on November 23, 2009 at 11:35 am, and is filed under Faqs, SQL. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
