Solved

VB6 and Oracle Stored Procedures

Posted on 1998-10-08
10
274 Views
Last Modified: 2013-12-25
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?
0
Comment
Question by:Adamski100898
  • 4
  • 2
  • 2
  • +1
10 Comments
 
LVL 3

Expert Comment

by:vmano
ID: 1496783
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
 

Author Comment

by:Adamski100898
ID: 1496784
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
 
LVL 3

Expert Comment

by:vmano
ID: 1496785
I think so.
0
 

Author Comment

by:Adamski100898
ID: 1496786
OK. So we have agreed it is the MSDAORA provider. Any furhter ideas any one?
0
 
LVL 3

Expert Comment

by:altena
ID: 1496787
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Adamski100898
ID: 1496788
It has been specified ODBC is not to be used.
0
 
LVL 3

Expert Comment

by:altena
ID: 1496789
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
 
LVL 2

Expert Comment

by:majed100598
ID: 1496790
use the property .parameters("name") to invoke the desired
0
 

Author Comment

by:Adamski100898
ID: 1496791
Have decided to use Oracle Objects. It seems we can not get arrays returned with ADO.

Thanks for the effort.
0
 
LVL 2

Accepted Solution

by:
majed100598 earned 100 total points
ID: 1496792
I think its more powerfull to use the oracle data control
you can see the example to use procedures come with oracle cd
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now