Solved

Remote Oracle 7 access via VB 5

Posted on 1998-06-18
1
152 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 100 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
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…

691 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