Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Upload data

Reply
Thread Tools

Upload data

 
 
=?Utf-8?B?TWFyZHk=?=
Guest
Posts: n/a
 
      10-08-2005
Hello

I'm trying to determine the best way to allow users to import data from an
Excel template to a sql server db via an asp.net page.

I'll have about 4 or 5 users that will need to create about 10,000 records
to populate a requirements table in sql server. They will gather this
information in an Excel spreadsheet/template and they apparently want to have
the ability to upload the records versus handing them off to some lazy, slow
developer like me.

I have used DTS in the past to import from Excel to sql server so my thought
is to create the asp.net page and 1. create a file upload that will allow
users to upload the Excel file to a specific folder on the web server (plenty
of examples of this around); and
2.once the upload is complete, execute a stored procedure to start the
DTSRun command line utility and import the records.

Is this the best way to do this? If anyone has a better approach or knows of
an example, I'd appreciate any ideas or feedback.

Thanks
 
Reply With Quote
 
 
 
 
Trevor Benedict R
Guest
Posts: n/a
 
      10-09-2005
That sounds like a good idea, but you do not want the users to wait till the
process is complete. So you might either keep the job running in the
background while you store information about the files that are uploaded
into a table where the JOb can pickup and insert the records and do the
cleanup.

If on the other hand you are willing to do some research and see if this
fits into your requirement. There is something VSTO (Visual Studio Tools for
Office). Try to google and see if this will help.

Regards,

Trevor Benedict R
MCSD

"Mardy" <> wrote in message
news:74AAB80A-ED03-42DC-952D-...
> Hello
>
> I'm trying to determine the best way to allow users to import data from an
> Excel template to a sql server db via an asp.net page.
>
> I'll have about 4 or 5 users that will need to create about 10,000 records
> to populate a requirements table in sql server. They will gather this
> information in an Excel spreadsheet/template and they apparently want to
> have
> the ability to upload the records versus handing them off to some lazy,
> slow
> developer like me.
>
> I have used DTS in the past to import from Excel to sql server so my
> thought
> is to create the asp.net page and 1. create a file upload that will allow
> users to upload the Excel file to a specific folder on the web server
> (plenty
> of examples of this around); and
> 2.once the upload is complete, execute a stored procedure to start the
> DTSRun command line utility and import the records.
>
> Is this the best way to do this? If anyone has a better approach or knows
> of
> an example, I'd appreciate any ideas or feedback.
>
> Thanks



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File upload from client application (non-form based upload) stuart@microsoft.com Python 1 11-25-2006 12:14 AM
Ihug upload data count towards monthly data allowance from July 1st Wombus NZ Computing 19 05-29-2006 03:27 AM
Upload a file without file Upload control - ASP.Net =?Utf-8?B?U2FyYXY=?= ASP .Net 3 08-03-2005 01:09 AM
How to detect sizeof upload in order to show status of browser file upload? Heather Fraser Java 0 07-05-2004 12:35 AM
Upload Excel with Macros using HTML File Upload Prakash ASP General 3 11-12-2003 04:26 AM



Advertisments