Checking health of sql (2000) tables and their index history

  • I want to check the health of the any table in the database (like is it indexed completely or the index run on it was long ago, also when was the last indexing done on this table) and how fragmented is the table data etc.

    Is there any query to do that or can enterprise manager be used to check this..

    Thanks,

    Prasanna

  • 1) Use DBCC CHECKTABLE to check the health of the table.

    2) Use DBCC SHOWCONTIG to check the index fragmentation.

  • Indexes are updated automatically as data changes. You do not need to do anything here.

    You should have auto-update statistics on.

    Run dbcc checkdb (includes checktable) at least weekly to look for linkage or other errors.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply