Import excel records into ASP database

Reply

Join Date: Mar 2005
Posts: 2
Reputation: Cadde is an unknown quantity at this point 
Solved Threads: 0
Cadde Cadde is offline Offline
Newbie Poster

Import excel records into ASP database

 
0
  #1
Apr 16th, 2005
Would you please send me a code for importing records in an Excel worksheet into my Asp Application database.

Your earliest response is higly appreciated. Thanking you in advance.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 131
Reputation: william_stam is an unknown quantity at this point 
Solved Threads: 2
william_stam's Avatar
william_stam william_stam is offline Offline
Junior Poster

Re: Import excel records into ASP database

 
0
  #2
Apr 23rd, 2005
does this need to be done regularly or is it a once off? if it is once off then what you could do is create a csv (comma deliminated doc) and import it into your database. i am not too sure if it is possible to get asp to do it automaticaly.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 9
Reputation: jpn311 is an unknown quantity at this point 
Solved Threads: 0
jpn311 jpn311 is offline Offline
Newbie Poster

Re: Import excel records into ASP database

 
0
  #3
Apr 26th, 2005
Your best option is always to use the built in import/export functionality that already exists and nearly all database systems. If for some odd reason this is not an option for you, you can connect to an Excel spreadsheet and read the rows of data just like you would any other database. Your DSN-less conenction string would be similar to :

"Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=" & Server.mappath("./YourSheet.xls") & ";UID=admin;"

Just loop through the recordset, grab the values, then insert them into another db.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 131
Reputation: william_stam is an unknown quantity at this point 
Solved Threads: 2
william_stam's Avatar
william_stam william_stam is offline Offline
Junior Poster

Re: Import excel records into ASP database

 
0
  #4
Apr 26th, 2005
i thought about it, makes sense if the excel doc is in proper format. no cell merges. the excel document would have to be uploaded to the server first, also the server would need to have the excel driver installed (don't think it is preintalled????
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 9
Reputation: jpn311 is an unknown quantity at this point 
Solved Threads: 0
jpn311 jpn311 is offline Offline
Newbie Poster

Re: Import excel records into ASP database

 
0
  #5
Apr 26th, 2005
The Excel driver is installed as part of MDAC, which should come pre-loaded on all Windows servers.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 131
Reputation: william_stam is an unknown quantity at this point 
Solved Threads: 2
william_stam's Avatar
william_stam william_stam is offline Offline
Junior Poster

Re: Import excel records into ASP database

 
0
  #6
Apr 26th, 2005
that was fast. ok sorry wasnt sure, thought it came with excel / office.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 4
Reputation: basena is an unknown quantity at this point 
Solved Threads: 0
basena basena is offline Offline
Newbie Poster

Re: Import excel records into ASP database

 
0
  #7
Aug 26th, 2005
Originally Posted by jpn311
Your best option is always to use the built in import/export functionality that already exists and nearly all database systems. If for some odd reason this is not an option for you, you can connect to an Excel spreadsheet and read the rows of data just like you would any other database. Your DSN-less conenction string would be similar to :

"Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=" & Server.mappath("./YourSheet.xls") & ";UID=admin;"

Just loop through the recordset, grab the values, then insert them into another db.
Hi William,

I didn't get exactly the reply u have posted. Could you please eloborate the same and explain us in detailed manner as i am also having the same type of requiremnt and struggling for the same from past long time..Thanks much in advance for your time

Bye
Aravind
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 4
Reputation: basena is an unknown quantity at this point 
Solved Threads: 0
basena basena is offline Offline
Newbie Poster

Re: Import excel records into ASP database

 
0
  #8
Aug 26th, 2005
Originally Posted by Cadde
Would you please send me a code for importing records in an Excel worksheet into my Asp Application database.

Your earliest response is higly appreciated. Thanking you in advance.

Aravind:

The same type of requirement i have with my project. Please anybody help us in this regards at the earliest.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 234
Reputation: cancer10 is an unknown quantity at this point 
Solved Threads: 0
cancer10's Avatar
cancer10 cancer10 is offline Offline
Posting Whiz in Training

Re: Import excel records into ASP database

 
0
  #9
Oct 12th, 2006
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC