FIX: The Fill method of the OleDBDataAdapter object fails when the Recordset object has a filter (831222)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft .NET Framework 1.1
SYMPTOMSThe Fill method of the DataAdapter object of the OLE DB managed provider may not work correctly when you apply an ADO Recordset object with filter criteria, and you use the Recordset object to populate the Dataset object.
You set the criteria for the Recordset object. When you open the Recordset object by using the filter criteria, and you try to fill the records in the Dataset object by using the Fill method of the OleDbDataAdapter object, the action fails, and you receive the following exception error message: An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in system.data.dll
Additional information: Exception has been thrown by the target of an invocation.
RESOLUTIONA 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: 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 hotfix 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 Time Version Size File name
--------------------------------------------------------
10-Nov-2003 17:46 1.1.4322.968 1,294,336 system.data.dll
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article.REFERENCES
For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
824684
Description of the Standard Terminology That Is Used to Describe Microsoft Product Updates, Tools, and Add-ons
310349 HOW TO: Use the OleDbDataAdapter to Fill a DataSet from an ADO Recordset in Visual Basic .NET
For additional information, visit the following Microsoft Developer Network (MSDN) Web sites:
Modification Type: | Minor | Last Reviewed: | 10/25/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbDataAdapter kbDatabase kbfix kbbug KB831222 kbAudDeveloper |
---|
|