Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VB 5.0 (RDO) & ORACLE 8

Posted on 1997-12-12
3
Medium Priority
?
256 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

636 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