Re: Using Microsoft Text Driver with CSV files
From: Dmitri Ivanov (divanov_NOSP_at_M_.aha.ru)
Date: 12/28/04
- Next message: Anushi: "Re: Connection State"
- Previous message: Wayne Phipps: "Using Microsoft Text Driver with CSV files"
- In reply to: Wayne Phipps: "Using Microsoft Text Driver with CSV files"
- Next in thread: Igor Shekalev: "Re: Using Microsoft Text Driver with CSV files"
- Reply: Igor Shekalev: "Re: Using Microsoft Text Driver with CSV files"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 28 Dec 2004 08:57:01 +0300
Hello Wayne,
"Wayne Phipps" <Wayne Phipps@discussions.microsoft.com> wrote:
WP> I have a working application that uses an ODBC connection to
WP> retrieve data from a CSV file.
WP>
WP> The only problem I have is that it always treats the first line as
WP> Column Names but out company gets sent data from different sources,
WP> some include Column Names, others don't.
WP>
WP> I would like to make the application more flexible and enable it to
WP> work with either format files.
WP>
WP> The connection string is something like:
WP> <code>
WP> "Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=C:\MyTest;"
WP> </code>
WP>
WP> Can the connection string be changed to indicate if column info is
WP> not included?
No, you cannot specify this kind of information in DSN nor in connection
string.
Instead, you must put the following attribute for each (!) table definition
in the schema.ini:
ColNameHeader
-- Sincerely, Dmitri Ivanov Common Lisp ODBC interface - www.ystok.ru
- Next message: Anushi: "Re: Connection State"
- Previous message: Wayne Phipps: "Using Microsoft Text Driver with CSV files"
- In reply to: Wayne Phipps: "Using Microsoft Text Driver with CSV files"
- Next in thread: Igor Shekalev: "Re: Using Microsoft Text Driver with CSV files"
- Reply: Igor Shekalev: "Re: Using Microsoft Text Driver with CSV files"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|