Article ID: 225093 - Last Review: March 14, 2006 - Revision: 2.1 FIX: Poor Performance with Inner Join with Multiple LIKE Clauses Using Variables
This article was previously published under Q225093
BUG #: 55032 (SQLBUG_70)
SYMPTOMS
An inner join between two tables with multiple LIKE clauses produces a poor query plan if the LIKE clauses use variables instead of string literals.
WORKAROUND
To work around this use one of the following:
STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 254561
(http://support.microsoft.com/kb/254561/
)
INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0 For more information, contact your primary support provider.
MORE INFORMATION
The following conditions must be met to encounter this bug:
For example, the following query demonstrates this problem:
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|





















Back to the top