SQL Server series: index maintenance

Source: Internet
Author: User

1. DBCC Showcontig

Displays fragmentation information for the data and indexes of the specified table. When you make a large number of modifications to a table or add data, execute this statement to view fragmentation information for the specified table or the data and index that is being displayed, whether it is fragmented or not.

Its syntax format:

DBCCShowcontig[({table_name | table_id | view_name | view_id} [, Index_name | index_id] ) ]     [with {[, [All_indexes] ]          [, [Tableresults] ]          [, [FAST] ]         [, [All_levels] ]          [no_infomsgs]         }    ]

Example:

When the scan density is 100%, it indicates that the table has no fragmentation information.

SQL Server series: index maintenance

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.