Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Running Stored Procedure from ASP

Re: Running Stored Procedure from ASP

From: Jim W <J.Wood.LAB_at_dial.pipex.com>
Date: Thu, 4 Jun 1998 09:52:19 +0100
Message-ID: <6l5nah$t7p$1@soap.news.pipex.net>


Hi Len,

If by parameter you mean a column(s) value, here's an example ...

Define your connection and do your select statement

<%
Set oConn = Server.CreateObject("ADODB.Connection") oConn.Open "database", "username", "password" SQLQuery = "SELECT blah FROM table"
set objResults = oConn.Execute(SQLQuery)
%>

You then stick the following in a table statement for example

<%= objResults("blah")%>

You could also set a variable to be the objResults statement and then use it elsewhere within your page or pass it on to other pages, etc, etc, etc ...

(I'm assuming you have ASP knowledge)

Hope this helps Received on Thu Jun 04 1998 - 03:52:19 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US