FIX: Unicode Character String Longer Than Seven Bytes in a LIKE Clause Is Truncated in Execution Plan (292637)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q292637
BUG #: 350911 (SHILOH_BUGS)
SYMPTOMS
When you use a Unicode character data type for a column, if a query contains a character string that is longer than seven characters inside a LIKE clause, the execution plan will only consider the first seven characters. Therefore, the optimizer may choose a less than optimal plan if those first seven characters are not selective.
RESOLUTIONTo resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack
WORKAROUND
Use >= and <= instead of a LIKE clause.
STATUSMicrosoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
Modification Type: | Major | Last Reviewed: | 10/16/2003 |
---|
Keywords: | kbBug kbfix kbSQLServ2000sp1fix KB292637 |
---|
|