Filtered indexes currently do not work on varchar columns where the filter is COLUMN <> '' (and you use parameters or forced parameterisation)You must use a filter in the format COLUMN is not nulleg:create index faster2 on orgmiscserv (om_iminvoicedetailreportsort) where om_iminvoicedetailreportsort <> ''-- this will fail (not use index) when using forced parameterisationselect * from dbo.orgmiscservwhere om_iminvoicedetailreportsort = 'CDX'-- and this will fail (not use index) alway
↧