RE: Index Usage w/ Dynamic Where Clause
SQL Server needs to pick one and only one access path for your SELECT statement. Since there are 5 columns being compared it will assume that every one is being used all the time which will never be the actual case due to the CASE statements embedded into the WHERE clause.As for a "better" way, what […]
2004-09-20