Solved

VB6 and Oracle Stored Procedures

Posted on 1998-10-08
10
301 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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 process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

707 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