Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2005, 04:07 AM
Authorized User
 
Join Date: Jan 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anandham
Default Uploading an Excel to Database using ASP

Hi,

I have all my databases in form of Access. But the Client sends it in the form of Excel. I can manually import the contents from the Excel to the Access. I would like to automate this by giving a front end where in I select the Excel file and when I click the upload button the data gets uploaded into the Access table. Can anybody give me an idea how I can do it using ASP???

Thanks in advance.


Prem Anandh P.
Ambition Never comes to an End
__________________
Prem Anandh P.
Ambition Never comes to an End
 
Old February 23rd, 2005, 04:29 AM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Anantham
If this is the first time that you are dealing with ASP/Excel then you will be happy to hear that, we can use same ADODB connection set to access Excel files.

Connect it using following connection string
Code:
str_xl_datasource="Provider=Microsoft.Jet.OLEDB.4.0;" & _ 
                                                        "Data Source=" & server.MapPath(".") & "\excelfile.xls;"& _ 
                                                        "Extended Properties=""Excel 8.0;HDR=NO"""


After this you can easily retrieve the excel data by just giving the
query
Code:
"SELECT * FROM [sheet1$]"
Hope this will help you

Shibu Narayanan
Software Associates





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP - Excel to Database cancer10 Classic ASP Databases 4 March 18th, 2007 11:07 PM
Impoting Excel file into Access Database using ASP prasanta2expert ASP.NET 1.0 and 1.1 Professional 0 October 5th, 2006 02:39 AM
Asp.net upload Excel Column to Database Patrick19 VB.NET 0 April 18th, 2005 02:56 AM
uploading ms excel without office on server vauneen Classic ASP Components 0 April 13th, 2005 09:16 AM
Connecting to Excel Database with ASP thehaz Classic ASP Databases 2 March 24th, 2004 05:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.