MS SQL Basics Tutorial: Dropping indexes

Source: Internet
Author: User

8.4.1 Delete index with Enterprise Manager

In Enterprise Manager, you can delete an index by selecting the index you want to delete from the Index Management dialog box shown in Figure 8-9 or the Properties dialog box for the table shown in Figure 8-14, and then selecting the Delete button.

8.4.2 deletes an index with the drop INDEX command

The DROP INDEX command deletes one or more indexes in the current database. The syntax is as follows:

DROP INDEX ' Tablename.indexname ' [,... N]

The DROP Index command cannot delete the primary KEY or UNIQUE constraint index created by the CREATE TABLE or ALTER TABLE command. You cannot delete an index from a system table.

Example 8-6: Delete the index p_quantity in the table products.

Drop INDEX Products1.p_quantity

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.