Article ID: 275900 - Last Review: October 9, 2003 - Revision: 3.1 FIX: Linked Server Query with Hyphen in LIKE Clause May Run SlowlyThis article was previously published under Q275900
BUG #: 236178 (SHILOH_bugs)
On This PageSYMPTOMS
A query that has a LIKE clause that contains a hyphen (-) character may run slower than expected against a non-SQL Server data source for a remote table with a large number of rows.
RESOLUTIONTo resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
290211
(http://support.microsoft.com/kb/290211/EN-US/
)
INF: How to Obtain the Latest SQL Server 2000 Service Pack
HotfixNOTE: The following hotfix was created prior to Microsoft SQL Server 2000 Service Pack 1.The English version of this fix should have the following file attributes or later: Version File name Platform --------------------------------------------------------- 8.00.210 s80210i.exe Intel WORKAROUND
If the linked server provider supports it, use the OPENQUERY rowset function to force the entire query to be passed to the remote server.
STATUSMicrosoft has confirmed that this is a problem in Microsoft SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1. MORE INFORMATION
In this situation, the LIKE clause criteria are applied at the local SQL Server after retrieving all rows from the remote table. So a query such as the following
| Article Translations
|
Back to the top
