DSN-less Connection To Oracle DB

Dragenesis

Registered User.
Local time
Today, 05:23
Joined
Dec 18, 2007
Messages
16
I'm trying to write a DSN-less connection to an oracle database. Here's what I've got so far.

Code:
DIM cnn AS New ADODB.Connection
DIM strOra AS string

strOra = "Provider=OraOLEDB.Oracle;Data Source=Prod;User Id=<username>;Password=<password>;"

WITH cnn
     .connectionstring = strOra
     .open
     END WITH

When I get to opening the connection, it tells me that an object is required. It doesn't say anymore than that. What is wrong with the above code?
 

Users who are viewing this thread

Back
Top Bottom