Dragenesis
Registered User.
- Local time
- Today, 06:08
- 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.
	
	
	
		
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?
 
		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 WITHWhen 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?
 
	 
 
		 
 
		