New and changed Adaptive Server 15.7 SP110 system procedures.
sp_modifystats [database].[owner].table_name, {"column_group" | "all"}, . . . modify_default_selectivity, {inequality | inbetween}, {absolute | factor}, 'value' modify_unique {range | total }, {absolute | factor}, 'value'Where:
Adaptive Server uses the default selectivity when an unknown constant prevents it from using a histogram to estimate selectivity of the respective predicate. The default selectivity for a search argument using inequality is 33%. inequality search arguments include columns for which there is an upper bound predicate or a lower bound predicate, but not both, and use the >=, <=, >, < range operators. The default selectivity for search arguments that include an inbetween search arguments is 25%. inbetween search arguments include columns that have both an upper bound predicate and a lower bound predicate, or use the between operator.
unique_range_values / (range_cell_rows * total rows_in_table)
sp_modifystats t10, a1, MODIFY_DEFAULT_SELECTIVITY, inequality, absolute, "0.09"
sp_modifystats t10, a2, MODIFY_DEFAULT_SELECTIVITY, inbetween, absolute, "0.11"
sp_modifystats t10, "all", MODIFY_UNIQUE, range, factor, "0.13"
sp_modifystats t10, "all", MODIFY_UNIQUE, total, absolute, "0.14" go
sp_xact_loginfo is a new procedure that provides the span of oldest active transaction in terms of percentage of total log space.
See sp_xact_loginfo