473,746 Members | 2,311 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 5737
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
9580
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
5345
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
2281
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
1281
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
1479
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
8006
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
4069
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
5389
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
8801
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9516
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
9351
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...
0
9219
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8229
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...
0
4587
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4840
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3294
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
2768
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.