Solved

Connect to Oracle

Posted on 2000-03-26
4
170 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
4 Comments
 
LVL 142

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
DO Loop not working 4 63
vba find the last empty column 10 81
Use Multiple Forms 4 38
clicking a shape in a frame array vb6 3 5
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 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…
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…

758 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

21 Experts available now in Live!

Get 1:1 Help Now