473,811 Members | 3,213 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connecting to AS400 running on IBM with MS Access

Hello All,

I've been struggling on and off for 3 months trying to connect to an
DB2 database running on an IBM iSeries machine.

I FINALLY figured out how to connect with Coldfusion (see instructions
below).

So, now I am trying to connect to the same database with MS Access. I
want to link the tables within Access so I can quickly query and answer
questions.

The problem is that I HAVE NO IDEA how to do this. I'm familiar with
linking tables to other databases (MySQL, MS SQL Server, Oracle), but
I've never done it for IBM DB2 (I'm not even familiar with the IBM
terminology). Usually I just download the ODBC driver, install it,
then I create a new datasource in Windows XP. After the new datasource
is created, I'm able to connect no problem.

Can anyone walk me through the process of creating an ODBC connection
to a DB2 database? What do I need to download (and where do I find the
download files)? How do I set up the connection? What port do I use?

Thanks!
--
nathan

PS: I may use the wrong terminology... I'm not an IBM guru and I don't
know the difference between AS/400, iSeries, and DB2.

PPS here is how I connect with coldfusion:
1) Download the jtopen driver from IBM [1]
2) Unzip it and point the Coldfusion class path [2] to where the jar
files are [3]
3) Create a new connection in
JDBC URL: jdbc:as400://10.11.26.2/alumfhss
Driver class: com.ibm.as400.a ccess.AS400JDBC Driver
[1] http://tinyurl.com/bfnm4 (
http://www14.software.ibm.com/webapp...BW71&S_CMP=&s=
)
[2] Coldfusion administrator > Java and JVM
[3] I put the jars in C:\CFusionMX\jd bc\jtopen_5_0\l ib, so my class
path looks like C:\CFusionMX\jd bc\jtopen_5_0\l ib,

Jan 24 '06 #1
5 5747
IIUC, The connection to DB2 is via the UDB client, installed on the
local machine. Set the connection up there, and there is even an option
for it to make the ODBC entry for you.

B.

Jan 24 '06 #2
Nathan Given wrote:
Hello All,

I've been struggling on and off for 3 months trying to connect to an
DB2 database running on an IBM iSeries machine.

I FINALLY figured out how to connect with Coldfusion (see instructions
below).

So, now I am trying to connect to the same database with MS Access. I
want to link the tables within Access so I can quickly query and answer
questions.

The problem is that I HAVE NO IDEA how to do this. I'm familiar with
linking tables to other databases (MySQL, MS SQL Server, Oracle), but
I've never done it for IBM DB2 (I'm not even familiar with the IBM
terminology). Usually I just download the ODBC driver, install it,
then I create a new datasource in Windows XP. After the new datasource
is created, I'm able to connect no problem.

Can anyone walk me through the process of creating an ODBC connection
to a DB2 database? What do I need to download (and where do I find the
download files)? How do I set up the connection? What port do I use?

Thanks!
--
nathan

PS: I may use the wrong terminology... I'm not an IBM guru and I don't
know the difference between AS/400, iSeries, and DB2.

PPS here is how I connect with coldfusion:
1) Download the jtopen driver from IBM [1]
2) Unzip it and point the Coldfusion class path [2] to where the jar
files are [3]
3) Create a new connection in
JDBC URL: jdbc:as400://10.11.26.2/alumfhss
Driver class: com.ibm.as400.a ccess.AS400JDBC Driver
[1] http://tinyurl.com/bfnm4 (
http://www14.software.ibm.com/webapp...BW71&S_CMP=&s=
)
[2] Coldfusion administrator > Java and JVM
[3] I put the jars in C:\CFusionMX\jd bc\jtopen_5_0\l ib, so my class
path looks like C:\CFusionMX\jd bc\jtopen_5_0\l ib,

Connection to DB2 on i-series requires DB2 Connect. DB2 Connect is part
of DB2 UDB ESE (limited license), but not part of DB2 UDB Personal
Edition or Workgroup Edition. You can find information about how to go
about doing this here:

http://www-306.ibm.com/software/data...manualsv8.html

see Installation and Configuration Supplement, Connectivity Supplement,
Quick Beginnings for DB2 Connect Enterprise Edition, DB2 Connect User's
Guide. In the Connectivity Supplement (chapter 8), you will find
references to other i-series publications that you will need to read.

Larry Edelstein
Jan 24 '06 #3
Larry wrote:
Nathan Given wrote:
Hello All,

I've been struggling on and off for 3 months trying to connect to an
DB2 database running on an IBM iSeries machine.

I FINALLY figured out how to connect with Coldfusion (see instructions
below).

So, now I am trying to connect to the same database with MS Access. I
want to link the tables within Access so I can quickly query and answer
questions.
<snip>

Connection to DB2 on i-series requires DB2 Connect. DB2 Connect is part
of DB2 UDB ESE (limited license), but not part of DB2 UDB Personal
Edition or Workgroup Edition. You can find information about how to go
about doing this here:

http://www-306.ibm.com/software/data...manualsv8.html

see Installation and Configuration Supplement, Connectivity Supplement,
Quick Beginnings for DB2 Connect Enterprise Edition, DB2 Connect User's
Guide. In the Connectivity Supplement (chapter 8), you will find
references to other i-series publications that you will need to read.

Larry Edelstein


DB2 Connect is one way to connect to DB2 UDB for iSeries. However many
people use ODBC (and other) support provided by iSeries Access.

http://www-03.ibm.com/servers/eserve...languages.html
http://publib.boulder.ibm.com/infoce...aikcaapidb.htm
--
Karl Hanson
Jan 24 '06 #4
I've started reading the manuals. In the meantime, I have some
questions:

Is ESE an abbreviation?
Where can I download DB2 UDB ESE?

Thanks!
--
Nathan

Jan 25 '06 #5
"Nathan Given" <na**********@g mail.com> wrote in message
news:11******** *************@g 44g2000cwa.goog legroups.com...
I've started reading the manuals. In the meantime, I have some
questions:

Is ESE an abbreviation?
Where can I download DB2 UDB ESE?

Thanks!
--
Nathan


Enterprise Server Edition

You can get a 90 try and buy license version of ESE, or Personal Developers
Edition:

Go to http://www-306.ibm.com/software/
select Trials and betas (left side)
search on db2
registration is free
Jan 25 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
9583
by: mechweb | last post by:
I am trying to connect to a DB2 database on an AS400 via ASP. On the server I can connect fine using VB, but keep getting a communcation link failure when using the exact same code in ASP. Here is my code (I know the AS400 ODBC DSN works ok because I can connect to it from MS Access with no problems): set cnn = server.createobject("adodb.connection") set rs = server.createobject("adodb.recordset") cnn.open "DSN=SYSTEM2"
2
5347
by: Niyazi | last post by:
Hi, I have to retrieve a data from AS400 DB2 and after working with data I have to export into one of existing Excel file. I can connect into specific library in AS400 DB2 using AS400 Client-Access v5.2 program using (in VB.NET) ODBC driver (DSN Name …) . I can retrieve datam work on it using VB.NET and I can send into 'NEW' Excel file. My first problem starts here:
0
413
by: alan_sec | last post by:
Hi. Does the com.ibm.as400.access.AS400JDBCDriver driver that is part of JTOpen (http://jt400.sourceforge.net) works with db2 udb version 7 that is installed on windows 2000? I' m trying to access db2 from java aplication like this: Class.forName("com.ibm.as400.access.AS400JDBCDriver"); Connection connection = DriverManager.getConnection("jdbc:as400://hostname","user","password");
2
2282
by: george r smith | last post by:
We need to create a C#.Net data access layer to an AS400 running the OS/400 operating system. Will someone please tell me where to go and where to start. I have found some information on an OLEDB component on the Microsoft web site in the Host Integregation Server documentation but is this overkill. Suggestions please. If this is wrong newsgroup please advise. thanks
0
1287
by: D.Saravanan | last post by:
I am using asp.net to connect to the DB2/400 database on the AS400. When I connect through windows forms or console application, the connection works fine. But when I connect through asp.net I get the error DB_E_BADPROPERTYVALUE 0x80040E44). I even removed the data access parts , put it in a new library and tried deploying two files, but still the connection string is giving problems. The connections strings that I have used are...
2
1482
by: Amaryllis | last post by:
Hello, I am writing an ASP.NET application and trying to connect to an as400 using an ADODB connection. I recently completed a Windows application that connects to the 400. My code works in the Windows world, so theoretically, it should work for the ASP application as well. But it doesn't. I keep getting the error CWBSY1006 - User ID is Invalid. I'm using my Windows login information to automatically log into the 400, so a userid and...
13
8010
by: Sehboo | last post by:
Hello, we have data sitting on AS400 (V4R5M0) - DB2-400. I need to access that from my vb.net application. I don't know anything about AS400. Is it possible to get data from tables and stored procedures? can somebody give me the code which shows how to do that? Thanks
3
4072
by: Laurence | last post by:
Hi there, Does somebody know the efficent way to connect DB2/400? Through iSeries Access ODBC/OLEDB driver or DB2 Connect? Which will more fast and efficent? In addition, does DB2 Connect use APPC over TCP/IP protocol? Or SNA protocol?
0
5392
by: mortenol | last post by:
Hi, I am trying to connect a MS SSIS package to an AS400/DB2 database, and I experience problem when I hit the "Create Package" button in the "Data Link properties window". I have understood that the packages need to be created, before I can run any SQL on the DB2 base via SSIS(?). Here are the steps that I have done before the problem arise: 1. In MS Visual Studios, I created a new project of type "Integration Services". 2. On the...
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10652
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10395
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10408
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9211
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7673
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6895
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4346
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3874
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.