Oracle Objects for OLE
Release 9.2

Part Number A95895-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback

Connecting to the Oracle Database

See Also
Quick Tour
Employee Form

After the OIP server is running, you can connect to your local or remote Oracle database. To do so, you must create the OraDatabase object as follows:

Set OraDatabase = OraSession.OpenDatabase("Exampledb", "scott/tiger", 0&)

You create an OraDatabase object using the OraSession.OpenDatabase() method. You must specify the database name, the connect string, and a bit flag word representing the database mode. The default database mode applies when you specify 0&. When Visual Basic executes this line, you have a connection to the specified database.


 
Oracle
Copyright © 1994, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback