Solved

Connection String for AS/400 Database

Posted on 2000-03-31
3
365 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 69

Accepted Solution

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

Author Comment

by:bhlang
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now