Import to dbase via excel

  • Thread starter Thread starter Vishal
  • Start date Start date
V

Vishal

Hello,

I need to import data from a excel file into a SQL
Server. I would like to provide an asp.net interface for
that purpose. What would be the best to do that? A simple
textarea where the user can insert his data and press the
import button? The excel will be a csv file and some
values can be also empty or null. Pleas advise me.

Thanks
 
Well, you can either upload the file to the server, or have the user enter
the values into your textarea. Your choice.

If uploading, Software Artisans has file upload components

Jeff
 
I think i will go with the 2nd option. Once the user has
entered the values like this:

1,2,3
4,5,6,
7,8,9

How do I then read it line by line so that I can insert
each line to my dbase table?

Thanks
 
Upload the csv file in a folder monitored by a SQLServer 2000 sheduled DTS.
The only step of the DTS is importing the file in the db
 
Oops, sorry. Then just parse the text using string functions like Split and
Mid

Jeff
 

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