legacy cardinality estimation in sql server