T
toby
I'm using the Jet OLE DB provider to select data out of a .csv file
into a dataset.
'----------------------------------------------------------------------
Dim ConnectionString As String = _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\path\to\file;Extended
Properties=""Text;HDR=NO;"""
Dim Conn As New System.Data.OleDb.OleDbConnection(ConnectionString)
Conn.Open()
Dim da As New System.Data.OleDb.OleDbDataAdapter("SELECT * FROM
TXT#csv", Conn)
da.Fill(oDataset, "DataTableName")
Conn.Close()
'-----------------------------------------------------------------------
It's working great for me, but I'm not so sure it'll work for my
users. To use this functionality, do you only have to have the
framework installed, or do you need MDAC installed also? Thanks.
into a dataset.
'----------------------------------------------------------------------
Dim ConnectionString As String = _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\path\to\file;Extended
Properties=""Text;HDR=NO;"""
Dim Conn As New System.Data.OleDb.OleDbConnection(ConnectionString)
Conn.Open()
Dim da As New System.Data.OleDb.OleDbDataAdapter("SELECT * FROM
TXT#csv", Conn)
da.Fill(oDataset, "DataTableName")
Conn.Close()
'-----------------------------------------------------------------------
It's working great for me, but I'm not so sure it'll work for my
users. To use this functionality, do you only have to have the
framework installed, or do you need MDAC installed also? Thanks.