![]() |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2004
Posts: 34
|
Linking to Excel from ASP
Hi all
Anyone got a duffer's guide to retrieving Excel data into a SQL database using classic ASP? I've tried a few connectuion strings but am struggling. (I can provide details of what I've tried if you like!). I'm developing on a Vista machine with Office 2007, so I'm not sure if this has any bearing on things? Will the finished result (hosted on Catalyst2 servers) have to be any different? Cheers Alan |
|
|
|
|
|
#2 (permalink) |
|
Administrator
Join Date: Oct 2003
Posts: 1,484
|
It is possible using Jet Connection. Which then allows you to query the sheet using normal sql. I have a solution using the following connection string:
Code:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=File.xls;Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1 It's been a year or two since I wrote my code so my memory is a bit fuzzy. But I know that I can't test the above code on my dev machine (Vista x64). I'm not sure if its the 64bit or the OS that causes the problem. I suspect it's either the former or both. I would recommend your first port of call would be to see if you have Jet installed. HTH Jas
__________________
Jason Robbins jason@catalyst2.com |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|