Microsoft KB Archive/321823

= FIX: Provider Option Supports Remoting of Enhanced LIKE Predicates =

Article ID: 321823

Article Last Modified on 10/18/2005

-

APPLIES TO


 * Microsoft SQL Server 7.0 Service Pack 3
 * Microsoft SQL Server 7.0 Service Pack 4

-



This article was previously published under Q321823



BUG #: 102563 (SQLBUG_70)



SYMPTOMS
If you try to run a linked server query against a Wonderware's remote provider, INSQL, and a LIKE predicate exists in the WHERE clause, the following error message may occur:

Server: Msg 7320, Level 16, State 2, Line 3

Could not execute query against OLE DB provider 'INSQL'.

[OLE/DB provider returned message: InSQL did not receive a WHERE clause from SQL Server. If one was specified, refer to the InSQL OLE DB documentation]

This error message can occur if you are using a computer that is running Microsoft SQL Server 7.0 Service Pack 3.



RESOLUTION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:   Date       Time          Version     Size              File name

04-26-02  12:29:54 PM   7.00.1070   5,058,832 bytes   Sqlservr.exe NOTE: Because of file dependencies, the most recent hotfix or feature that contains the files may also contain additional files.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
Beginning with this hotfix (post service pack 4 build 1070), to make sure that the LIKE criteria is remoted to a provider when you run a linked server query, SQL Server checks the SQLServerLIKE provider registry entry. When the SQLServerLIKE provider entry exists and is set (key is equal to 1), if a LIKE predicate exists in a linked server query it is remoted to the provider.

SQL Server determines the remotability of the LIKE predicate when it runs a linked server query. The SQLServerLIKE provider key was introduced to ease the restrictions that dictate the remotability of the LIKE predicate.

The SQLServerLIKE provider key is a cumulative setting. When set, it also implies DateLiteral support by the provider.

The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Keywords: kbbug kbfix kbqfe kbsqlserv700presp5fix kbhotfixserver KB321823

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.