SYMPTOMS
ActiveX Data Objects (ADO) may return no data with the
SQLOLEDB provided under the following conditions:
- The Prepared property on the command object is set to TRUE.
- The query has a parameterized LIKE clause.
- The column included with the LIKE clause is defined as CHAR
(and not as VARCHAR) at the back end.
- The parameter value has fewer characters than the back-end
column size.
- You are connecting to either a Microsoft SQL Server 7.0 or
SQL Server 2000 database. If it is a SQL Server 2000 database, the Defer Prepare property is set to FALSE on the command object.
This problem occurs with the versions of ADO that are listed in
the beginning of this article.
RESOLUTION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft Data Access Components service pack that contains this hotfix.
To resolve this problem immediately, 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:
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 has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the
Time Zone tab in the Date and Time tool in Control Panel.
Date Version Size File name
------------------------------------------------------------
18-OCT-2001 2.62.8018.0 528,656 Msado15.dll
WORKAROUND
You can work around this problem by changing the data type of the
column involved in the LIKE clause from CHAR to VARCHAR.