Solved

Need code for connect a Oracle Database

Posted on 1998-05-29
4
146 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
[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
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

726 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