Imports System.Data.OleDb
...
Public Function RecordSetToDataTable(ByVal objRS As ADODB.RecordSet) As DataTable
Dim objDA As New OleDbDataAdapter()
Dim objDT As New DataTable()
objDA.Fill(objDT, objRS)
Return objDT
End Function
Showing posts with label DataTable. Show all posts
Showing posts with label DataTable. Show all posts
Monday, December 4, 2006
ADODB.Recordset to ADO.NET DataTable
It turns out that an OleDbDataAdapter can be used to fill an ADO.NET DataTable object from an ADODB.Recordset object:
Subscribe to:
Posts (Atom)