Solved

VB6 and Oracle Stored Procedures

Posted on 1998-10-08
10
283 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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…
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…

810 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