|
Oracle Objects for OLE Release 8.1.7 Part Number A85257-01 |
|
| See Also
| Properties
| Methods
|
In the following Visual Basic example, two user sessions (hrDBSession1,
hrDBSession2) are established on the server whose network alias is hrdb.
'Main thread of execution. Create a server connection
Set hrDBServer = CreateObject("OracleInProcServer.XOraServer")
Set hrDBSession1 = hrDBServer.OpenDatabase("scott/tiger",0)
'execute queries ...
Set hrDBSession2= hrDBServer.OpenDatabase("scott/tiger", 0)
'execute queries ...
This interface can also be created independently via the COM method,
CreateObject in VBA, or CoCreateInstance in C/C++. In this case, the connection to the
server must be established explicitly by invoking the Open method.
Set strprdServer = CreateObject(OracleInProcServer.XOraServer)
strprdServer.Open("strprd")
![]() Copyright copy; 1996-2000, Oracle Corporation. All Rights Reserved. |
|