Solved

Remote Oracle 7 access via VB 5

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

759 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