.NET Tutorials, Forums, Interview Questions And Answers
HomeTutorialArticlesForumInterview QuestionCode SnippetsTechnology NewsFun Zone Poll Certification Search
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


 

Home >> Interview Question >> Sql Server >> Post New Question  Subscribe to Interview Questions
 
Quick Links For Interview Questions Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  OOPs  JQuery   JavaScript/VBScript
BiztalkPatten/Practices .IIS WCFWPF WWF
NetworkingAptitude Others  All    

Indexes in SQL Server?

Author: syed shakeer hussain          Posted Date: 28/06/2009     Category: Sql Server     Points: 10

Answer: Indexes in 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. When you craete a clustered index on a table, all the rows in the table are stored in the order of the clustered index key. So, 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 (so do clustered indexes), with the leaf level nodes having the index key and it's row locater. The row located could be the RID or the Clustered index key, depending up on the absence or presence of clustered index on the table.

If you create an index on each column of a table, it improves the query performance, as the query optimizer can choose from all the existing indexes to come up with an efficient execution plan. At the same t ime, data modification operations (such as INSERT, UPDATE, DELETE) will become slow, as every time data changes in the table, all the indexes need to be updated. Another disadvantage is that, indexes need disk space, the more indexes you have, more disk space is used.





Product Spotlight

Featured Articles


The Two Interceptors: HttpModule and HttpHandlers
Many times we want to implement pre-processing logic before a request hits the IIS resources. For instance you would like to apply security mechanism, URL rewriting, filter something in the request, etc. ASP.NET has provided two types of interception HttpModule and HttpHandler. This article walks through it.... Read More
DI using Unity Application Blocks
In the previous article we discussed about the fundamentals of IOC and DI design patterns. In case you have missed it you can read more about it on the following link "Inversion of control(IOC) and Dependency Injection(DI)" ... Read More
Design Pattern Interview Questions Part (2)
(I) what is Interpreter pattern? (B) Can you explain iterator pattern? (A) Can you explain mediator pattern? (I) Can you explain memento pattern? (B) Can you explain observer pattern? ... Read More
You can also find related Interview Question to Indexes in SQL Server? or other FAQ from the same Sql Server category  Below: 
 

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend