Solved

Remote Oracle 7 access via VB 5

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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 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…
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…

733 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