[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VB 5.0 (RDO) & ORACLE 8

Posted on 1997-12-12
3
Medium Priority
?
257 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 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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

834 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