Solved

Remote Oracle 7 access via VB 5

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Run code from text file in vb 1 64
How does CurrentUser work? 10 36
VB6 - Convert HH:MM into Decimal 8 54
Error with a code discussed on this page 5 12
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…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

813 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

18 Experts available now in Live!

Get 1:1 Help Now