Index sort order is only relevant for an index with multiple columns. For a single column, the Sql Sever can simply use the index in the reverse order if it wants DESC, where is the ASC index.
For multi-column search, index sorting matters. Say you have an index:
field1, field2 desc
This would be useful for this query:
select field1, field2 from table order by field1, field2 desc
And for this query, where the index can be used in reverse order:
select field1, field2 from table order by field1 desc, field2
But for this request, the Sql server will need an additional view in memory:
select field1, field2 from table order by field1, field2
Andomar
source share