Solved

Need code for connect a Oracle Database

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now