Solved

ADO connectstring problem, Openlink ODBC to Oracle

Posted on 2000-03-23
1
655 Views
Last Modified: 2012-05-12
I have setup an OPENLINK ODBC connection to ORACLE:
Datasource Name: PRODUCTION
Provider Type: Oracle PimsP
Provider Protocal: TCP/IP
Provider Hostname:pims

The VB code is as follows:

Dim connADO As ADODB.Connection
Set connADO = New ADODB.Connection

connADO.ConnectionString = "driver={OpenLink for Win32};server={Oracle PimsP};UID=pims;PWD=lppepg12;database=pims"

connADO.Open

I get an overflow error 6.

These are my early painly ADO days and any recommendations as to what might be wrong will be gratefully received.  I have tried many different combinations!!

Thanks in advance

TheDane
0
Comment
Question by:TheDane
1 Comment
 

Accepted Solution

by:
Conon earned 100 total points
ID: 2649989
The ODBC driver DSN should take care of the data base/server details, and the connection string would look something like this:-

DSN=PRODUCTION;UID=pims;PWD=lppepg12
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question