Article ID: 170764
Article Last Modified on 11/5/2003
APPLIES TO
- Microsoft SQL Server 6.0 Standard Edition
- Microsoft SQL Server 6.5 Standard Edition
This article was previously published under Q170764
SUMMARY
When scoring a search or join clauses, the Sql Server optimizer uses the
row and page estimates to arrive at the cost associated with using the
index. The page estimate is the estimated number of pages that will need to
be traversed in finding a matching row. The page estimates (costing x pages
in trace(302) output) is used in estimating the cost of using the index.
When there are no indexes being used, the cpages value will be the actual
number of pages in the table. This value will be lower than the total
number of pages in the table when a useful index exists and is being
considered by the optimizer. Relevant portions of the trace(302,310) are
used in this discussion. This is important because the total cost
associated with using an index for a search argument or in evaluating the
cost of a join permutation depends on the cpages value.
Keywords: kbinfo kbusage KB170764