Solved

VB 5.0 (RDO) & ORACLE 8

Posted on 1997-12-12
3
249 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

759 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