I'm receiving the following error:
Microsoft JScript compilation error '800a03ec'
Expected ';'
/bulk/bookcargo.asp, line 13
set rs=Server.CreateObject("ADODB.RecordSet"
when I try to run this code:
Yet, another site that I designed earlier has similar context for the recordset and it works fine. Infact, I
copied it and only changed the SELECT statement and
DNS name, everything else is constructed the same.
What could be the problem?
Thanks in advance.
Microsoft JScript compilation error '800a03ec'
Expected ';'
/bulk/bookcargo.asp, line 13
set rs=Server.CreateObject("ADODB.RecordSet"
when I try to run this code:
Code:
<%
//Create a recordset
set rs=Server.CreateObject("ADODB.RecordSet")
//Set up a connection string
connect="DSN=name"
//Query String
SQL = "SELECT commodity_desc FROM Commodities ORDER BY commodity_desc"
//Connect to DB and execute query
rs.open SQL, connect
%>
Yet, another site that I designed earlier has similar context for the recordset and it works fine. Infact, I
copied it and only changed the SELECT statement and
DNS name, everything else is constructed the same.
What could be the problem?
Thanks in advance.