Solved

Connection String for AS/400 Database

Posted on 2000-03-31
3
367 Views
Last Modified: 2013-12-25
I am trying to connect to an AS/400 Database with VB6 and ADO and OLE DB. I think that all I need to be successful is a good connection string. I am trying to set up a Connection in a Data Environment, and the ConnectionSource property of the DEConnection object seems to be my problem.

My server name is Server1, the Library on the AS/400 is CO88, and the Database is JCLABAS. I can open this database via VISDATA and Lotus Approach, so I know this can be done. I just don't know what connection string to use to get the data in VB6.
0
Comment
Question by:bhlang
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 49 total points
ID: 2673416
Use the ODBC provider and choose your DSN. I didn't see yet a native OLE DB provider.
0
 

Author Comment

by:bhlang
ID: 2673484
In the Data Link properties of my DEConnection, on the Provider Tab, I have the choice of the following OLE DB providers:

IBM AS400 OLE DB Provider
Microsoft Jet 3.51 OLE DB Provider
Microsoft OLE DB Provider for ODBC Drivers (currently selected)

On the Connection Tab, I have selected the Data Source Name which I defined in ODBC (JCLABAS).

When I do this, I get an error:
[IBM][Client Access ODBC Driver (32-bit)][DB2/400 SQL]SQL0204 - JCLABAS in CO88 type *FILE not found. Anyone know a solution to this error.
0
 

Author Comment

by:bhlang
ID: 2673514
I just realized that the File was in the wrong location, moved it, tried again, and now everything works as it should.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…

809 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