Searching for NCHAR or NVARCHAR columns in an index
A query using an index on an NCHAR or NVARCHAR scans the entire index, resulting in additional time costs.
- Global Language Support (GLS) Only
Indexes that are built on NCHAR or NVARCHAR columns are sorted using a locale-specific comparison value. For example, the Spanish double-l character (ll) might be treated as a single unique character instead of a pair of ls.
In some locales, the comparison value is not based on the code-set order. The index build uses the locale-specific comparison value to store the key values in the index. As a result, a query using an index on an NCHAR or NVARCHAR scans the entire index because the database server searches the index in code-set order.