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 |
|
ZarrinPour
Yak Posting Veteran
66 Posts |
Posted - 2007-11-14 : 13:18:05
|
| Hi allas i remember i had read in Books Online that on each Table in Sql Server we can create only one Clustered index but today suddenly i create another clustered index on a table without any Error from SQl server !!!BUT my query Order changed to the order of this newly created index.could anyone elaborate on this issue?Thanks in advance.Regards. |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-11-14 : 13:22:31
|
Please post your table data, your table layout and your INDEX creation statement. E 12°55'05.25"N 56°04'39.16" |
 |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-11-14 : 22:25:02
|
| Each table can have only one clustered index. Your table may have non-clustered pkey. |
 |
|
|
ZarrinPour
Yak Posting Veteran
66 Posts |
Posted - 2007-11-15 : 02:06:21
|
quote: Originally posted by rmiao Each table can have only one clustered index. Your table may have non-clustered pkey.
Hi rmiaoThanks you for ur replyyes,You are right , i was wrong and i didn't noticed that ihad a non-clustered Primary Key.Thank you GUYSRegards. |
 |
|
|
kishore chittam
Starting Member
10 Posts |
Posted - 2007-11-18 : 20:37:27
|
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 indexIn 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 otherquote: Originally posted by ZarrinPour Hi allas i remember i had read in Books Online that on each Table in Sql Server we can create only one Clustered index but today suddenly i create another clustered index on a table without any Error from SQl server !!!BUT my query Order changed to the order of this newly created index.could anyone elaborate on this issue?Thanks in advance.Regards.
|
 |
|
|
|
|
|