views:

243

answers:

1

I'm trying to connect various VBA projects to an Oracle 10g back end using ADO (2.8) and no TNS. After various attempts, we've decided that the simplest series of steps for a clean installation include:

  1. Set up an Oracle Instant Client
  2. Install the accompanying ODBC driver
  3. (Test the connection using EZCONNECT via SQL Plus)
  4. (Test the connection by creating a Windows DSN)

Everything up to here works fine. Problem is, I cannot figure out the syntax to tell ADO to use the instant client ODBC driver, which appears in my ODBC driver list as "Oracle in MyTest" (no quotes). Using the MSFT ODBC driver with EZConnect as this post suggests does not work any better than it did prior to setting up the instant client (which is to say, not at all). But this post seems to suggest it's possible, without stating exactly how, and connectionstrings.com only tells you what the Data Source portion of the string looks like, i.e. SomeUser/SomePassword@AServer:PortNumber/InstanceName

Short version: What is the exact syntax of a classic ADO connection string referencing an instant client ODBC driver?

Thanks in advance for your help. Took me a stupid long time to get going with SO...

A: 

Downwitch did you ever get an answer to your solution. I am also looking for an ezconnect for my ADO object. Thanks

andrew
Not so far. Further research implies that none of the providers--ODBC or OLEDB, Oracle or MSFT--actually support the syntax. To be fair, the connectionstrings link above only expresses this syntax for .NET providers, which have been maintained and enhanced much more recently and regularly than older connectivity technologies.This means the instant client is also a no-go for me, alas. The current compromise is to use Oracle's OLEDB provider (180MB, plus a puzzlingly large number of idiosyncracies) and the full TNSless as the Server parameter. (Syntax at the above connectionstrings link.)
downwitch