Solved

VB6 and Oracle Stored Procedures

Posted on 1998-10-08
10
263 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

708 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

16 Experts available now in Live!

Get 1:1 Help Now