What is an index?

What is an index?

- Indexes of SQL Server are similar to the indexes in books.
- They help SQL Server retrieve the data quicker.
- Indexes are of two types. Clustered indexes and non-clustered indexes.
- Rows in the table are stored in the order of the clustered index key.
- There can be only one clustered index per table.
- Non-clustered indexes have their own storage separate from the table data storage.
- Non-clustered indexes are stored as B-tree structures.
- Leaf level nodes having the index key and it's row locater

Disadvantages of the Indexes are
- Use of intexes slow down Data modification operations (such as INSERT, UPDATE, DELETE).
- Every time data changes in the table, all the indexes need to be updated.
- Indexes need disk space, the more indexes you have, more disk space is used
What is RAID?
RAID stands for Redundant Array of Inexpensive Disks. It provide fault tolerance to database servers........
Reasons of poor performance of query
No indexes. Excess recompilations of stored procedures. Procedures and triggers without SET NOCOUNT ON........
Ways to troubleshoot performance problems in SQL Server
SET SHOWPLAN_ALL ON, SET SHOWPLAN_TEXT ON, SET STATISTICS IO ON.......
Post your comment