Article ID: 310349 - Last Review: June 15, 2006 - Revision: 3.2 How to use the OleDbDataAdapter to fill a DataSet object from an ADO Recordset object in Visual Basic .NETThis article was previously published under Q310349 Caution ADO and ADO MD have not been fully tested in a Microsoft .NET Framework environment. They may cause intermittent issues, especially in service-based applications or in multithreaded applications. The techniques that are discussed in this article should only be used as a temporary measure during migration to ADO.NET. You should only use these techniques after you have conducted complete testing to make sure that there are no compatibility issues. Any issues that are caused by using ADO or ADO MD in this manner are unsupported. For more information, see the following article in the Microsoft Knowledge Base: 840667
(http://support.microsoft.com/kb/840667/
)
You receive unexpected errors when using ADO and ADO MD in a .NET Framework application On This PageSUMMARY
This step-by-step article demonstrates how to use the OleDbDataAdapter class to obtain rows from an ADO Recordset object and insert them into a DataSet object. Note that you cannot do the reverse; that is, you cannot obtain rows from a DataSet object and insert them into an ADO Recordset object.
RequirementsThe following list outlines the recommended hardware, software, network infrastructure, and service packs that are required:
Create the Project
REFERENCESFor additional information about the ADODB primary interop assembly, click the article number below
to view the article in the Microsoft Knowledge Base:
318559
(http://support.microsoft.com/kb/318559/EN-US/
)
INFO: Using the Primary Interop Assembly for ADO (ADODB) in Visual Studio .NET
For more information, see the following topic in the Visual Studio .NET Help documentation:
OleDbDataAdapter.Fill Method
For general information about ADO.NET or Visual Basic .NET, see the following MSDN newsgroups:
http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbdataadapter.fill.aspx (http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbdataadapter.fill.aspx) microsoft.public.dotnet.framework.adonet
(http://go.microsoft.com/fwlink/?linkid=5819)
microsoft.public.dotnet.languages.vb (http://go.microsoft.com/fwlink/?linkid=5820) | Article Translations
|
Back to the top
