Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Connecting to an Oracle database
Hi all,
I am trying to connect to an Oracle database with a VB application that curreently uses a SQL database. I set up the connection for SQL as follows:
Public conMain As Connection
.
.
Set conMain = New Connection
.
.
' get database settings from registry
strDatabasePath = GetSetting("MyDB", "ConnectionDetails", "DatabasePath")
strDatabaseUser = GetSetting("MyDB", "ConnectionDetails", "DatabaseUser")
strDatabasePassword = GetSetting("MyDB", "ConnectionDetails",
"DatabasePassword")
strDatabase = GetSetting("MyDB", "ConnectionDetails", "Database")
.
.
'set the connection properties
conMain.Properties("Data Source") = strDatabasePath ' machine name conMain.Properties("User ID") = strDatabaseUser ' user name conMain.Properties("Password") = strDatabasePassword ' password'connect to SQL
Can anyone please tell me what is the equivalent connection string for an Oracle 8i database, plus any other problems to expect after I make the connection. Any help would be much appreciated.
Dan. Received on Tue Oct 23 2001 - 02:23:29 CDT
![]() |
![]() |