Using the TEXT driver to read a file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a file that uses semi-colons to delimit fields. Currently the system
accesses this file via a File DSN set up using the ODBC control panel. The
downside to this approach is that the filename is saved into the DSN, and
we're getting new files with new names every day.

What I would like to do is set up the connection using a DSN-less connection
string. I found a couple of examples on the net, and have managed to get it
"sort of" working. I can loop through my code and see each line being read
in, and can pass in the filename in the select statement. The problem is that
it reads in an entire line as a single string -- it's ignoring the semi-colon
delimiters.

I'm guessing that I'm one option away from making it work. However there
doesn't seem to be any documentation on how to use these options in a
DSN-less system.

Any ideas?
 
:

After looking over both resources, the answer is "you can't do that".
Specifically the delimiter character cannot be specified in a connection
string!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top