Optimizer Diagnostic Utility

The sp_opt_querystats system procedure lets you analyze the query plan generated by the Adaptive Server optimizer and the factors that influenced its choice of a query plan. This analysis may help determine if elements in the query or the execution environment affect how Adaptive Server executes the query and its performance. You need not run the selected query to perform the analysis.

sp_opt_querystats output includes: