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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trapping a value returned by an SQL stored 'function'? 1

Status
Not open for further replies.

Phathi

Programmer
Aug 10, 2001
60
ZA
Hi,

I have a problem trying to trap a value which is returned by a stored SQL function (PL/SQL).

what I have is
dim SQL as string
SQL = "Declare Param VARCHAR(500);" & _
"BEGIN functionname(inVar,inVar2); End;"
myConn.execute SQL

now this works fine for a procedure, but I need to trap the value of Param so as to display.

A colleague suggested ADODB.Parameters but I can't seem to et it right.

Help...
 
use an ADO command object to fire your stored proc and add a line something like :

oCommand.Parameters.Append .CreateParameter("lID",Integer, adParamInputOutput, , lvID)

Dan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top