Solved

Connection String for AS/400 Database

Posted on 2000-03-31
3
370 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

695 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