Hi,
Ques What is an Index. Can I create a separate Index on each column of a table ?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MuthuMari MPosted Apr 8, 2012, 11:45 PM
Index in sql is created on existing tables to retrieve the rows quickly.
When there are thousands of records in a table, retrieving information will take a long time. Therefore indexes are created on columns which are accessed frequently, so that the information can be retrieved quickly. Indexes can be created on a single column or a group of columns. When a index is created, it first sorts the data and then it assigns a ROWID for each row.
pls refer this urlhttp://beginner-sql-tutorial.com/sql-index.htm
Thanks.
Satyapriya NayakPosted Apr 8, 2012, 8:32 AM
Please refer Our recommended articles
http://www.c-sharpcorner.com/uploadfile/b19d5a/index-in-sql-server-2008/default.aspx
http://www.c-sharpcorner.com/uploadfile/nipuntomar/clustered-index-and-non-clustered-index-in-sql-server/default.aspx
Thanks
SenthilkumarPosted Apr 8, 2012, 8:02 AM
There are several types of indexes in sql server.
1) Clustered index
2) Non clustered index
3) Covering index
Clustered index will create automatically when you create the primary key on the table. A table can have only one clustered index.
Non clustered index is very useful for frequently searching columns in the table. As per the sql server 2008 you can have 999 non clustered index. All the rows it will have the lookup index table.
For more info:
http://msdn.microsoft.com/en-us/library/ms188783.aspx
http://www.simple-talk.com/sql/learn-sql-server/sql-server-index-basics/