Re: Installable ISAM error message by Michael
Michael
Thu Mar 04 06:35:06 CST 2004
It is passing in a proper path. I was missing a ";", but I put that in place
and I still get the same error. I removed "FMT=Delimited" and got the same
ISAM error.
Here is the string:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and
Settings\mbarrett\My Documents\;Extended Properties=text;HDR=Yes;"
I am attempting to open a csv file. I replaced the Ext Props value with
"csv" and it still returned the same error.
Is ADO.Net incapable of this action?
> Your connection string is not formed correctly. The first part looks good
> (although you didn't show us the code that generates the value for
> strFilePath). I'm not familiar with the last part of the connection
string
> that you are appending, this could be the culprit. Try connecting without
> that last part and verify that strFilePath is a valid path.
>
>
> "Michael Barrett" <mchaelfbarrett@remthis_yahoo_thistoo.com> wrote in
> message news:OMdnOVWAEHA.444@TK2MSFTNGP11.phx.gbl...
> > This code produces the "Could not find Installable ISAM" error message.
> > Anybody have any suggestions?
> >
> > strConnectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
> > strFilePath
> > strConnectString += "Extended Properties=text;HDR=Yes;FMT=Delimited"
> >
> > Dim ds As New DataSet
> > Dim da As New OleDbDataAdapter("SELECT * FROM " & strFileName,
> > strConnectString)
> > da.Fill(ds)
> >
> > I need to fill a dataset from a text file.
> >
> >
>
>