473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Returning a value from Oracle via OLEDB (in ASP)

CJM
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

Jan 10 '08 #1
0 1793

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phoenix_Dfire | last post by:
We've had a working application for the last year, which involved Microsoft ASP serving up web pages, which were generated from data retrieved from an Oracle Database via ADO. However, as part...
0
by: Pedro Rafael | last post by:
Hello. I have an asp.net application that connects to a oracle database with the microsoft OLE DB provider. All works fine, if the web application is opened with a admin account. But if opened...
1
by: Thierry | last post by:
Hi, Is it possible to get the value of an asp:dropdownlist in javascript. I need to get that value to assign it to a hyperlink. This does not work:...
7
by: msnews | last post by:
I am collecting a value in a textbox on an asp.net page and need to open an asp page and pass the variable containing the value or just the value to that asp page so I can use it in the vbscript as...
1
by: Chris Skaryd | last post by:
Is it possible to have the Oracle OLEDB or ODAC drivers for 8i and 10g installed on the same machine? If so, is there a way to select oracle home's between 8i and 10g? I have an application...
1
by: ori | last post by:
Hi, I have an ASP.Net application hosted in a windows server 2003 (IIS 6.0). The application uses a Oracle Database to retrieve some data through an Oledb connection. I've set the IIS...
0
by: thisis | last post by:
Hi All, I'm getting an error on my ASP page: Microsoft VBScript runtime error '800a000d' Type mismatch: 'StoreFileIntoField' I assume - 99.5% - the error is generated because of worng...
0
by: thisis | last post by:
Hi All, I'm getting an error on my ASP page: Microsoft VBScript runtime error '800a000d' Type mismatch: 'StoreFileIntoField' I assume - 99.5% - the error is generated because of worng...
1
by: activey | last post by:
Hi there, How can I change the value of an asp control by javascript, could you please tell me your perofessional opinion about this. Thanks,
1
by: mbewers1 | last post by:
I get an ORA-00936: missing expression error when using the following code to return a single date from an Oracle table. I've used an example snippet of code to help me put this method together...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.