Book Excerpt

Quick steps: Querying and updating index statistics

The following excerpt, courtesy of Que Certification, is from Chapter 10 of the book MCAD/MCSD/MCSE Training Guide (70-229): SQL Server 2000 Database Design and Implementation by Thomas Moore and Ed Tittel. Click for the complete book excerpt series or purchase the book.



STEP BY STEP - 10.6

Querying and updating index statistics

  1. Open the Query Analyzer from the Start menu.

  2. To see the statistics for the titleind index in the Titles table, use the following:
    USE pubs
    GO
    DBCC SHOW_STATISTICS (titles, titleind)
    

  3. To update its statistics, run the following:
    UPDATE STATISTICS titles titleind
    


Click for the complete book excerpt series.


This was first published in January 2006

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: