Solved

VB 5.0 (RDO) & ORACLE 8

Posted on 1997-12-12
3
250 Views
Last Modified: 2008-03-04
Recently i finished working on a Sybase System 11 project with VB4.0 and am supposed to start work on ORACLE8 & VB5.0 project.
Need some help on figuring out How do you call "Stored Procedures/Packages" from VB4.0/5.0 using RDO. In Sybase used to execute Stored Procedures as prepared statements returning multiple resultsets. Has anyone worked on a similar project.

Any Tips, Clues appreciated.

Thanx in advance & all help, pointers to information else where , sample code is more than welcome

Thanx
Manoj
0
Comment
Question by:ErandeM
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
abidn earned 70 total points
ID: 1444971
I will save bandwidth here by referring you to "Processing Multiple RDO Result Sets" topic in Visual Basic On-line Books series "Guide to Building Client/Server Applications with Visual Basic".
0
 

Author Comment

by:ErandeM
ID: 1444972
I wanted more specific details obviously. Maybe the answerer may not be aware of the specifics of ORACLE8 with respect to RDO.

Can close this.

Thanx
0
 
LVL 1

Expert Comment

by:abidn
ID: 1444973
To be honest, we have had a lot of experience with Oracle 7.3 and RDO (VB5). My guess is that the ODBC driver that you use has more ramifications for your VB code than RDBMS.

In your question, you have asked for help on calling stored procedures. With Oracle, especially when IN/OUT variables are used in Stored Procedures, we use ODBC Call Syntax ("? = Call Foo (?,?,...?))". For starting, you should probably use UserConnection object which retrieves stores procedure list from Oracle and tries to identify the direction of the variables used in the definition of the stored procedures.

To use multiple resultset queries, there are two methods: 1) opening resultsets on connection, 2) using rdoQuery. We prefer the latter approach since it gives better handle. To define the WHERE clause in the query, just use question mark as parameter place holder and use rdoParameters to assign/retrieve parameters. You can only access one resultset at a time, so process the first resultset, execute "MoreResults" method of the rdoResultSet to access additional resultsets.

I hope the above information is useful. However, if you still need more information, I suggest that you let me have a specific query, I will be very happy to give you VB code to handle that.

tks.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

919 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

21 Experts available now in Live!

Get 1:1 Help Now