Re: CSV to access in ASP... making my head spin
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Thu, 6 Jul 2006 10:59:40 -0400
anndr0id wrote:
I've been trying to figure this out on my own for two days and I give
up at this point. I'm creating a web administration interface, and the
user would like to be able to upload a CSV file, and have it post to
the database.
I originally tried using the microsoft text driver, and that worked
great. However, putting the CSV in an array to save the information
Why use the array? Can't you open a recordset using the text driver?
and then open the access database didn't work, because the CSV is soI would probably do this outside of the ASP process, using the import
huge, I'm getting out of memory errors when running the array... and
of course the client isn't interested in my ideas of why they should
change hosts.
Anyway, my problem is this. I need to find a way to add the records in
a CSV file on the server (I've already got the uploading working) to
the database, without using an array. I'm stumped
Thanks so much for any advice you can give in advance!
- Ann
functionality built into Access. Why tie up an IIS thread with this
task?
However, your host might not cooperate with that plan, so, instead of
reading the whole file into an array, loop through the file one line at
a time (using ReadLine) and process it one line at a time
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- References:
- CSV to access in ASP... making my head spin
- From: anndr0id
- CSV to access in ASP... making my head spin
- Prev by Date: CSV to access in ASP... making my head spin
- Next by Date: Re: Split memberof to multiple arrays
- Previous by thread: CSV to access in ASP... making my head spin
- Next by thread: Re: CSV to access in ASP... making my head spin
- Index(es):
Relevant Pages
|