
open tab-delimited file by oledb connection string
On Wed, 28 Nov 2001 05:43:51 -0800, "Gennadiy"
Quote:
>Does anybody know how to open TAB delimited file using
>OLEDB connection string?
>I created ADODB recordset by code:
>m_cnADO.ConnectionString=
>"Provider=Microsoft.Jet.OLEDB.4.0;Data
>Source=c:\somepath\dbname.mdb;User Id=admin;Password=pass;"
>It works fine with comma-delimited files, but for tab-
>delimited files I am able to read only first column.
I believe you must specify "Format=TabDelimited" in the schema.ini
file in the same directory as your tab delimited file. Look up the
article "Schema.ini" in MSDN for information on this file.
However, the connection string you gave appears to be for an Access
(mdb) file, not a comma or tab delimited data file. So I wonder how it
works for comma-delimited.
Chris