Hi all
I am new to ASP.I'm trying to retrieve the values of a column from an uploaded csv file, then insert this into an database. I exactly followed this link to display the data but it dint work ..it is giving a blank screen..please help...
http://www.geekpedia.c om/tutorial143_Ext ract-data-from-Excel-Spreadsheet-using-ASP.html
<%
' Set Connection Params
Set oConn = Server.CreateOb ject("ADODB.con nection")
oConn.Open "Driver={Micros oft Excel Driver (*.xls)}; DriverId=790;" &_
"DBQ=c:\champ\s fox\Book.xls;" &_
"DefaultDir = C:\champ\sfox\"
Set RS=Server.Creat eObject("ADODB. recordset")
' Write the SQL Query
RS.open "SELECT * FROM Test", oConn
do until RS.EOF
Response.Write ( RS("NAME") & " -- " & RS("EMAIL") & "")
RS.movenext
Loop
'Close the recordset/connection
RS.Close
oConn.Close
Set RS = Nothing
%>
Thanks
Vani
I am new to ASP.I'm trying to retrieve the values of a column from an uploaded csv file, then insert this into an database. I exactly followed this link to display the data but it dint work ..it is giving a blank screen..please help...
http://www.geekpedia.c om/tutorial143_Ext ract-data-from-Excel-Spreadsheet-using-ASP.html
<%
' Set Connection Params
Set oConn = Server.CreateOb ject("ADODB.con nection")
oConn.Open "Driver={Micros oft Excel Driver (*.xls)}; DriverId=790;" &_
"DBQ=c:\champ\s fox\Book.xls;" &_
"DefaultDir = C:\champ\sfox\"
Set RS=Server.Creat eObject("ADODB. recordset")
' Write the SQL Query
RS.open "SELECT * FROM Test", oConn
do until RS.EOF
Response.Write ( RS("NAME") & " -- " & RS("EMAIL") & "")
RS.movenext
Loop
'Close the recordset/connection
RS.Close
oConn.Close
Set RS = Nothing
%>
Thanks
Vani
Comment