From the course: SQL Server 2008 Essential Training

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Monitoring and rebuilding indexes

Monitoring and rebuilding indexes - SQL Server Tutorial

From the course: SQL Server 2008 Essential Training

Start my 1-month free trial

Monitoring and rebuilding indexes

Because your indexes will get updated whenever there is a change to your main table, if there is an insert, we have to change the index, if there is an update, we change the index, if there is a delete, we change the index. Or your indexes can become what's called fragmented. They can become inefficient and split across multiple parts of the files that SQL Server uses to organize itself. Well, we can find out if that's an issue. Though I will tell you in a typical production database, it will be an issue and you want to defragment, even rebuild your indexes from time to time. Luckily, in SQL Server Management Studio, I can right-click any of my databases, come down to Reports and I will about find that in the Standard Reports section there's both an Index Usage Statistics, how much of these index is being used, and Index Physical Statistics. Both of these are great. If I click on Index Usage Statistics, it will tell me and this is going to be fairly recent information, how my indexes…

Contents