dbTalk Databases Forums  

Returning a value from Oracle via OLEDB (in ASP)

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Returning a value from Oracle via OLEDB (in ASP) in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
CJM
 
Posts: n/a

Default Returning a value from Oracle via OLEDB (in ASP) - 01-10-2008 , 11:51 AM






Bit of a noob question I'm afraid... I've had a look on t'interweb and it
has got me so far, but I'm doing something wrong.

I've managed to run procedures with an output parameter, but a return value
from a function is sufficiently different to stump me.

Set oParam = .CreateParameter("iSequenceNo", adInteger, adParamReturnValue)
..Parameters.Append oParam

Set oParam = .CreateParameter("sSerialNo", adVarchar, adParamInput, 50,
sSerialNo)
..Parameters.Append oParam

Set oParam = .CreateParameter("sPartNo", adVarchar, adParamInput, 50,
sPartNo)
..Parameters.Append oParam

..CommandText= "{? = Call
IFSAPP.Part_Serial_History_API.Get_Latest_Sequence _No(?, ?)}"
..Execute()

..Parameters.Delete "sSerialNo"
..Parameters.Delete "sPartNo"

I understand in this scenario that the Return Value must be the first
parameter supplied.
When I run my code, it completes without any errors, but iSequenceNo is not
populated. I assume the problem is the way in which I am calling the
function, but I'm not sure what exactly is wrong.

Any help would be appreciated.

Thanks

Chris


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.