Solved

Handling multiple oracle refcursors in vb

Posted on 2006-10-24
8
412 Views
Last Modified: 2012-08-14
Hi All,

I have an oracle procedure returning three ref cursors.  I have to call the procedure from vb and hold the output in three different recordset object.  How is it possible?  Please share the code snippet with me.

I have searched EE, there are examples for handling one refcursor.  But I am unable to tweak that code for my requirement.
0
Comment
Question by:cts_teambo
8 Comments
 
LVL 21

Accepted Solution

by:
oleggold earned 68 total points
ID: 17798100
0
 
LVL 29

Assisted Solution

by:leonstryker
leonstryker earned 66 total points
ID: 17798226
This will show you how to handle multiple recordset:

http://www.4guysfromrolla.com/webtech/083101-1.shtml

Leon
0
 
LVL 18

Assisted Solution

by:JR2003
JR2003 earned 66 total points
ID: 17798752
You can copy a recordset to a disconnected recordset.
http://vbforums.com/showthread.php?p=2263813

You use the .NextRecordset  function to move to the next recordset.
0
 

Author Comment

by:cts_teambo
ID: 17825020
The examples given in the above websites are for SQL server.
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 17833929
So what?  Once the data is in the recordset object it is exactly the same.
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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…

863 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

24 Experts available now in Live!

Get 1:1 Help Now