Solved

Need code for connect a Oracle Database

Posted on 1998-05-29
4
144 Views
Last Modified: 2010-05-03
Hi, i am newbi visual basic user. need to connect a oracle database. can some one give me some code, and comments.
thanks you
0
Comment
Question by:dorosman
4 Comments
 
LVL 1

Expert Comment

by:JayMerritt
ID: 1462068
Lookup HELP for "RDO" - this assumes you already have ODBC connectivity.
0
 

Expert Comment

by:oak022097
ID: 1462069
what exactly you want to do? I can send u few lines of codes which might help you
0
 

Author Comment

by:dorosman
ID: 1462070
oak,
I try to connect to a ORacle Db, call some function pass some parameters(about 3), and expect a value back. The function was wrote in ORacle.
Thank you.
0
 
LVL 2

Accepted Solution

by:
seahpc earned 50 total points
ID: 1462071
Try this

Public m_rdoConn As rdoConnection
Public m_rdoErr As rdoError
Public m_rdoResult As rdoResultset
Public m_rdoEnv As rdoEnvironment
Public m_rdoCol As rdoColumn

Set m_rdoEnv = rdoEnvironments(0)
m_rdoEnv.CursorDriver = rdUseOdbc
Set m_rdoConn = m_rdoEnv.OpenConnection(dsname:="", _
                prompt:=rdDriverComplete, _
                ReadOnly:=False, _
                Connect:="uid=sa;pwd=zaq12wsx;driver={SQL Server};" _
                & "server=Wellington;database=Auction;")
End Sub
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

685 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