Solved

how to connect   vb with oracle?

Posted on 2001-07-15
2
364 Views
Last Modified: 2008-03-06
how to connect   vb with oracle?
0
Comment
Question by:imranb35
2 Comments
 
LVL 6

Expert Comment

by:jpk041897
Comment Utility
Take a look at:

http://support.microsoft.com/support/kb/articles/Q176/9/36.ASP


BTW, you would probably get a better response in the VB forum.
0
 

Accepted Solution

by:
hquoc earned 50 total points
Comment Utility
Hi,
Y try using following way:
1. Create a service by Net8 Configuration Assistant utility to connect to database.
2. Then, Y can insert some snippet to create a database object:
 Set db = New Connection
 db.CursorLocation = adUseClient
 db.Open "Provider=MSDAORA.1;Password=" & Password & ";User ID=" & Username & ";Data Source=" & Service_name & ";Persist Security Info=True"
Where db is a variable declared in public for the project scope.
3. For each connection what y want to create to connect to oracle database can be used following:
for a selection query:
 Set rs = New Recordset
 rs.Open "Select * from Schema.TableName conditions", db
for a insert/update/delete query:
 db.Execute "Insert into Schema.TableName values(...)"
or
 db.Execute "Update Schema.TableName Set FieldName=Value, .."
or
 db.Execute "Delete from Schema.TableName where conditions"
and so on.
Also, y can operate data in the database by some other ways. But all cases, y have to create above database object(db).

I hope it will help y.
thank for ragards,
huuquoc  

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
The viewer will learn how to implement Singleton Design Pattern in Java.

772 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

10 Experts available now in Live!

Get 1:1 Help Now