Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
aakcse
Aged Yak Warrior
570 Posts |
Posted - 2009-06-27 : 16:00:33
|
Hi all,I have a question.When we have clustured index on a table, then entire row is stored at the leaf level, thenWht is the significance of creating normal index on other column of the same table which has clustured index.Regards,aak |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2009-06-27 : 17:33:50
|
If you want to search often for that other column this "normal" index is speeding this.The clustered index cannot be sorted to satisfy all searches...In case of having a clustered index the "normal" index for the other column holds the information/search item for searching then in clustered index. No, you're never too old to Yak'n'Roll if you're too young to die. |
|
|
laddu
Constraint Violating Yak Guru
332 Posts |
Posted - 2009-06-28 : 03:32:41
|
Clustered index-->Reorders the way records in the table are physically stored. Therefore table can have only one clustered index.The leafnodes of clustered index contain the data pages.Table and index are sameNon- clustered index-->In which the logical order of the index does not match the physical stored order of the rows on diskThe leafnode of non clustered index does not consist of the data pages. Instead , the leaf nodes contain index rows.Table and index are different from each otherGo through below link...hope it will helphttp://www.sql-server-performance.com/tips/nonclustered_indexes_p1.aspx |
|
|
rajdaksha
Aged Yak Warrior
595 Posts |
Posted - 2009-06-29 : 10:16:28
|
A clustered index determines the physical order of data in a table. A clustered index is analogous to a telephone directory, which arranges data by last name. Because the clustered index dictates the physical storage order of the data in the table, a table can contain only one clustered index. However, the index can comprise multiple columns (a composite index), like the way a telephone directory is organized by last name and first name.byraj...:) |
|
|
aakcse
Aged Yak Warrior
570 Posts |
Posted - 2009-07-09 : 02:52:16
|
Thanks you for the reply, I got it... correct me If I am worng. there are only 3 types of allocation unit 1. In_row_data2. Lob_data3. Row_overflow_dataAny datatype (data rows) should fit into one of these there type of allocation unit.Regards,A |
|
|
|
|
|
|
|