|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Sunday, May 19, 2013 9:07 PM
Points: 162,
Visits: 336
|
|
Hi all, What are secondary indexes in SQL Server and why are they needed.
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 4:11 PM
Points: 37,741,
Visits: 30,020
|
|
No such thing as a secondary index. Do you mean a secondary XML index?
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Yesterday @ 10:37 AM
Points: 257,
Visits: 3,722
|
|
| I can only imagine a writer using the term "secondary indexes" to refer to any indexes other than one on a Primary Key? In that case, such indexes are used to aid or make more efficient the retrieval of data.
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 4:11 PM
Points: 37,741,
Visits: 30,020
|
|
OTF (1/21/2013) I can only imagine a writer using the term "secondary indexes" to refer to any indexes other than one on a Primary Key?
That would be an incorrect term for them. The only 'secondary' indexes in SQL are secondary XML indexes. Indexes other than the primary key are just clustered/nonclustered indexes.
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Yesterday @ 10:37 AM
Points: 257,
Visits: 3,722
|
|
That would be an incorrect term for them.
Nevertheless, it's a term I've seen used by some authors to explain the concepts of Indexes. I guess only the OP knows whether the term was used as it relates to XML Indexes or Indexes in general.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 8:27 PM
Points: 6,735,
Visits: 11,788
|
|
OTF (1/21/2013)
That would be an incorrect term for them.
Nevertheless, it's a term I've seen used by some authors to explain the concepts of Indexes. I guess only the OP knows whether the term was used as it relates to XML Indexes or Indexes in general. It's common and correct for Oracle users to speak that way about indexes, maybe other DBMS' too, but not for SQL Server users. I would hope that an author writing about SQL Server whose work passed through a technical editor did not publish anything discussing "secondary indexes."
__________________________________________________________________________________________________ There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: 2 days ago @ 10:15 AM
Points: 841,
Visits: 500
|
|
Hello,
There's good information on indexes on the MSDN website. Should give you the required background information:-
http://msdn.microsoft.com/en-us/library/ms189271(v=sql.105).aspx
Regards,
Andrew
|
|
|
|