VB6 and Oracle Stored Procedures

I am using ADO to connect to oracle using the MSDAORA as the provider.

When calling packaged stored procedures from the VB client that return an array, oracle refuses to accept the parameters. However the procedures work when called at the host. I can't help thinking there is a problem with the MS provider. I have followed and attemted to implement all the MS examples, but they only relate to ODBC. MSDAORA uses SQL*NET.

Any ideas?
Adamski100898Asked:
Who is Participating?
 
majed100598Connect With a Mentor Commented:
I think its more powerfull to use the oracle data control
you can see the example to use procedures come with oracle cd
0
 
vmanoCommented:
You can only define input parameters for Oracle stored procedures
that return a Recordset. You cannot define output parameters for these stored procedures. if you want sample code for this, i can give you. let me know if this helps,
vmano

0
 
Adamski100898Author Commented:
I do believe output parameters are obtainable. Calling the procedure in Oracle PL/SQL and also using ODBC in VB works. It just seems to be a problem using the MSDAORA provider.

0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
vmanoCommented:
I think so.
0
 
Adamski100898Author Commented:
OK. So we have agreed it is the MSDAORA provider. Any furhter ideas any one?
0
 
altenaCommented:
From the way the discussion went, the hack (have to call it that) seems simple: use the standard ODBC OLE-DB Provider in stead of MSDAORA.

Personnally I am not a real big fan of stored procrdures that return an array too. You might want to reconsider the design on that point.
0
 
Adamski100898Author Commented:
It has been specified ODBC is not to be used.
0
 
altenaCommented:
I love specifications like that:

- You shall not use ODBC
- You shall return arrays from PL/SQL Stored procedures.

Can I ask a question (seriously)?
Are the designers/specifiers still on the team?
0
 
majed100598Commented:
use the property .parameters("name") to invoke the desired
0
 
Adamski100898Author Commented:
Have decided to use Oracle Objects. It seems we can not get arrays returned with ADO.

Thanks for the effort.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.