Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSV load through ASP to SQL DB

Status
Not open for further replies.

DataLust

Programmer
Apr 25, 2002
3
US
I'm trying to Load a CSV into a SQL database using ASP, since that is the only access I have to the database. I'm planning on reading each row and inserting it into a load table (one row at a time), then completeing the action using the load table once all the data is loaded.

The question is: Is there a better way to load the data with ASP than one row at a time? Can I load an Array and shove that into SQL?
 
Hi ...
I think you are using FileSystemObject.
if so, it has a method for OpenTextFile named READALL
you can do it.
it reads all the text file and stores it int an array(each line in one row)
then you can use that array.
----
TNX.
E.T.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top