Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Connecting to Oracle from ASP ?
Hi,
Check up if you are having Oracle client installed on the server(IIS) machine? It is a must to access Oracle from ASP.
Regards,
Prasad BAV.
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com>
Sent: Monday, November 19, 2001 2:15 PM
> Hello;
> I am using the code given below to connect to Oracle using ASP.
> <%
> Set DataConn = Server.CreateObject("ADODB.Connection")
> DataConn.Open "DSN=ora;UID=scott;PWD=tiger"
> Set DataCmd = Server.CreateObject("ADODB.Command")
> 'DataCmd.CommandText = "SELECT * from emp WHERE ENAME = '" &
> Request.Form("Last_Name") & "'"
> DataCmd.CommandText = "SELECT * from emp"
> Set DataCmd.ActiveConnection = DataConn
> Set rs_main = Server.CreateObject("ADODB.Recordset")
> Set rs_main = DataCmd.execute
> %>
>
> I have useed the "Oracle ODBC test" utility to check the connectivity of
> ODBC and everything is fine. But the code above from an ASP page does not
> return me anything from the Database upon querying. The record set is not
> returning any value on the web page. I am not getting any error messages
> also.
> Can anybody help me out with this ?
>
> Thanks,
> Faiz
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: FAIZ QURESHI
> INET: faizq_at_hotmail.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Prasad BAV INET: bavprasad_oracle_at_yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Nov 19 2001 - 04:41:16 CST
![]() |
![]() |