× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The query should have read (using the example provided:
select *
from MYAS400TEST.<SYSTEM SERIAL NUMBER>.QSYS2.SYSTABLES
where system_table_schema='QSYS2'
--Loyd

On Thu, Apr 15, 2010 at 1:27 PM, Loyd Goodbar <loyd@xxxxxxxxxxxxxx> wrote:

I usually populate SQL Server tables from SQL Server itself. Create a
linked server to DB2. You will need to install iSeries Access, but just the
ODBC drivers. Here is what a linked server setup looks like (SQL Server 2005
with v5r4 iSeries Access installed):


Linked server: myas400test
Provider: Microsoft OLE DB Provider for ODBC Drivers
Product name: DB2 UDB for iSeries
Data source: MyAs400Test
Provider string: CMT=0;SYSTEM=10.0.0.1
Catalog: <System serial number>

You query like this:
select *
from DB2400.SYSNAME.QSYS2.SYSTABLES
where system_table_schema='QSYS2'
I've found the four-part name must be in upper case.

HTH,
Loyd


On Thu, Apr 15, 2010 at 10:55 AM, Lance Gillespie <LGillespie@xxxxxxxx>wrote:

I am looking for a way populate a SQL Server table with
DB2/400 data.

In a perfect world I would be running this tool on the
Windows box and it would update SQL server whenever the
DB2/400 data changes. In a less perfect (but still OK)
world, it would update on a schedule.

Currently we ftp the DB2/400 data to the server as CSV
and use the Microsoft import tool. This works, but lacks
aesthetic appeal.

I would also like to be able to use a TOAD-like tool from
a workstation against DB2/400 tables.

These could be different solutions.

I tried IBM DB2 CONNECT, but could not get it installed
properly before the evaluation period expired.

Vendor solutions welcome.

Thanks,
lance



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.