?
Solved

Remote Oracle 7 access via VB 5

Posted on 1998-06-18
1
Medium Priority
?
153 Views
Last Modified: 2010-05-03
I am trying to access an Oracle 7 remote database through VB. I'm pretty new to ODBC and OCI and such. I'm not even sure which names to use from the TSNAMES.ORA file! What is the most efficient way of accessing remotely, and can I get some sample code ? (please...)  :-(
0
Comment
Question by:poggles
[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
1 Comment
 
LVL 2

Accepted Solution

by:
seahpc earned 200 total points
ID: 1463665
Try this codes to connect to your db

From the project menu, choose references then choose RDO 2.0

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:'="test",prompt:=rdDriverComplete,
ReadOnly:=False)

Before coding these codes, go to control panel, odbc, system dsn , add
Choose oracle, type in dsn name as test for this case . point the database to the server ....


0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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
Course of the Month14 days, 6 hours left to enroll

770 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