Solved

Connect to Oracle

Posted on 2000-03-26
4
174 Views
Last Modified: 2010-05-02
Anyone can help to specify an example to connect to Oracle 7.3 database
using VB 4?
0
Comment
Question by:MWarrenC
[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
4 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2659869
1) Build a Alias using SQL Easy Config (coming with Oracle Client install)
2) Connectstring will go like
"DBQ=YourAliasName;Driver={Oracle73};UID=Username;PWD=pwd"


For the Name of the driver, look in the Control Panel-ODBC-Drivers and copy the name of the driver you want to use (case sensitive)

Hope this helps
0
 

Expert Comment

by:szden
ID: 2659911
ODBC?
No thanks.

ADO Yes, Yesy, Yes!

1.Put MS ADO data control on a form.
2.Click right mouse button and choose properties.
3.Click on Build... (connection string)
4.Choose MS OLE DB provider for Oracle
5.Click Next.
6.Enter data (serevr name is DB alias created using SQL easy config)
7.Test connection
8.OK

Now you can copy connection string from ADODC properties.
(Of course, after pasting Connection string into code, ADODC is not needed anymore)
0
 
LVL 5

Expert Comment

by:Voodooman
ID: 2660062
Ado - no thanks - to many bugs and too slow!!

Voodooman!

Also dont think VB4 supports ado - no controls - need VB6 to get that!
0
 

Accepted Solution

by:
maheshsivakumar earned 25 total points
ID: 2660179
I have used this code to connect to Oracle data base and it works fine. I have used rdoconnection object. Try this.I hope VB4 supports this.Create a dsn name to Oracle database and try following code.
dim en as rdoenvironment,db as rdoConnection

Set en = rdoEnvironments(0)
Set db = en.OpenConnection(dsname:="trainora", Connect:="uid=train1;pwd=train1;", Prompt:=rdDriverNoPrompt)
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…

740 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