Home Forums SQL Server 2008 SQL Server 2008 Performance Tuning Index Recommendations from DMVs (Field Already part of Clustered Index) - High Level Question RE: Index Recommendations from DMVs (Field Already part of Clustered Index) - High Level Question

  • The index is not sorted by itemNo.

    It is sorted by date.

    So you dont have an index on data sorted by itemno.

    Imagine a phonebook sorted by Lastname, Then by firstname, then by address.

    Your index will be (surname,Firstname,Address)

    So I cannot search based on address because the phone book is sorted by surname, it is only possible to search by address if I already have the surname and firstname.

    Same thing here.

    Your phone book is sorted by date, then by ID then by number and not by ItemNo /Address, as an analogy.

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]