Indexes in SQL SEVER and Index types?

What is Index? What types of indexes are supported in Microsoft SQL Server.

Tags..  SQL Server  ASP.Net Interview  DBA Interview  Database
Views: 260 | Community Opinion/Answer: 2

Add Your Opinion

Bookmark this page..



Ask a New Question Go to Home


Community Opinion/Answers
Peter B said..

An index is a physical structure containing pointers to the data. Indexes are created in an either existing table to locate rows more quickly and efficiently or It is possible to create an index on one or more columns of a table, and each index is given a name. The users cannot see the indexes; they are just used to speed up queries. Effective indexes are one of the best ways to improve performance in a database application.

A table scan happens when there is no index available to help a query. In a table scan SQL Server examines every row in the table to satisfy the query results. Table scans are sometimes unavoidable, but on large tables, scans have a terrific impact on performance. There are two types of indexes are available in SQL SERVER

Clustered indexes define the physical sorting of a database table’s rows in the storage media. For this reason, each database table may have only one clustered index.

Non-clustered indexes are created outside of the database table and contain a sorted list of references to the table itself. Non-clustered indexes can be multiple.

Lakshmi said..

A clustered index is a special type of index that reorders the way records in the table are physically stored. Therefore table can have only one clustered index. The leaf nodes of a clustered index contain the data pages.

A non-clustered index is a special type of index in which the logical order of the index does not match the physical stored order of the rows on disk. The leaf node of a non-clustered index does not consist of the data pages. Instead, the leaf nodes contain index rows of references to the table.


What do you think? Add your opinion/answer
Your Name:
*your opinion/answer: