Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing a two column Microsoft Excel file to be imported into an Ora

Status
Not open for further replies.

reszek

Programmer
Jul 3, 2002
16
0
0
CA
I am fairly familar with the ASP and SQL in general, but im not quite sure how to access the automatically created Excel file with ASP. My suspision is to creat an Object of some of the Excel program, but im really in the dark here. Any comments or help would be very helpful.




zach
 
I don't know if this will help you:


<% Set oConn = Server.CreateObject(&quot;ADODB.Connection&quot;)
oConn.Open &quot;Driver={Microsoft Excel Driver (*.xls)};&quot; & _
&quot;DriverId=790;&quot; & _
&quot;Dbq=c:\inetpub\ & _
&quot;DefaultDir=c:\inetpub\;&quot;
Set Rs = Server.CreateObject(&quot;ADODB.Recordset&quot;)
sqlt=&quot;select * from [sheet_name$A1:B14]&quot;
rs.open sqlt, oConn, adopenstatic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top