How can I analyze the results of the sql query : dbcc showcontig to improve the performance of sql?
How can I analyze the results of the sql query : dbcc showcontig to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The results from SHOWCONTIG are relevant only if you have a clustered index on the table. Books Online has a nice section about this.
Depending on the fragmentation level (~20% – 30%), you will decide whether to simply defrag the indexes, or rebuild them completely. This also depends on the number of changed rows, the total number of data pages, etc.
If you choose to defrag the indexes, remember to update your statistics as a separate step. This happens automatically when you rebuild.