Re: Error using ado to read cvs file
- From: "Light" <a@xxxxx>
- Date: Thu, 13 Sep 2007 10:39:12 -0400
One problem though, the file name in the scheme.ini file has to be exactly
the name of the file and I found out I can't use wild card like:
[*.csv]
ColNameHeader = True
MaxScanRows = 10000
Format = CSVDelimited
CharacterSet = ANSI
Is there a way out of this?
TIA.
""Walter Wang [MSFT]"" <wawang@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:7hI5QHe9HHA.5532@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi Light,
You can create a file named 'Schema.ini' in the directory to specify each
column's data type. By default the driver uses first row's data type to
determine, in your case, the first column in first row is a number,
therefore it treats the column as a numeric one.
#ConnectionStrings.com - How to connect to Textfile
http://www.connectionstrings.com/?carrier=textfile
Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
.
- Follow-Ups:
- Re: Error using ado to read cvs file
- From: ekkehard.horner
- Re: Error using ado to read cvs file
- From: "Walter Wang [MSFT]"
- Re: Error using ado to read cvs file
- References:
- Error using ado to read cvs file
- From: Light
- RE: Error using ado to read cvs file
- From: "Walter Wang [MSFT]"
- Error using ado to read cvs file
- Prev by Date: Re: Error using ado to read cvs file
- Next by Date: Re: Class not Registered (VB 6 - Dao 3.6 - DBGrid and Data Source)
- Previous by thread: Re: Error using ado to read cvs file
- Next by thread: Re: Error using ado to read cvs file
- Index(es):
Relevant Pages
|