?
Solved

VB 5.0 (RDO) & ORACLE 8

Posted on 1997-12-12
3
Medium Priority
?
255 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
[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
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
abidn earned 140 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 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…
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…
Suggested Courses
Course of the Month12 days, 22 hours left to enroll

777 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