Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Sql Server and iSeries linked server

Posted on 2012-03-26
Medium Priority
Last Modified: 2012-04-02
I tried this a few years back and was very frustrated, but I'm going to try again.  I have a server 2003 box (clean, all updates)  with client access 6.0 installed.  Our AS400 runs 7.1.  My question is can I do this with sql server 2012 express or should I stick with 2008 developer edition.  I'm just doing this for testing to see if I can get it to work.  Also, with a linked server, is it read only or will I be able to update the tables on the 400?  Thanks
Question by:bergertime
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
  • 2
  • 2
  • +1
LVL 46

Accepted Solution

Kent Olsen earned 800 total points
ID: 37767165
Talk about good timing.  :)

There was a discussion just a few days ago about connecting SQL Server to DB2 on an AS400.

Take a look at the thread below, particularly the last entry (by the question's author).  He found a great article that got him right to the solution.


And when you link to DB2, you should have read/write access from SQL Server.

Good Luck,
LVL 27

Assisted Solution

tliotta earned 800 total points
ID: 37768131
...when you link to DB2, you should have read/write access from SQL Server.

I'd rephrase that slightly -- you should be able to create a connection that has read/write access. There can be requirements that must be met before write access is enabled. That is, you won't necessarily have it just because a connection works.

However, once a working connection exists, any seeming obstacles for write access become connection configuration or server setup elements that can be handled.

LVL 16

Assisted Solution

by:theo kouwenhoven
theo kouwenhoven earned 400 total points
ID: 37774138
Hi Kent, Tom,

Sme questions ago, I had problems with updating of DB2 tables and The solution was that you need to activate Journaling on the 400 if you like update or insert records in DB2 tables?
Isn't this the same issue?

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 27

Expert Comment

ID: 37784422
Enabling journals should be the preferred resolution. However, I'm pretty sure I've seen connection options that bypass that. I try always to have it set up, so I'm not familiar with what to do when it isn't.

Different clients, different releases, different options, different servers... all can affect exactly which buttons or menu options to click or which connection string parameters to use or...?

For the AS/400 line, this usually comes up when the "tables" are really older style DDS physical or logical files rather than actual SQL objects in a SQL schema. Without knowing details, guesses are tricky.


Author Comment

ID: 37796886
Thanks, I'll award points today, but I do need one more thing made clear.  I've got it linked, can I see the tables from Visual Studio?  Can I use the query designer in Mgmt Studio?  All I've been able to do is open the linked the linked server, I see the tables, then run a Script table as.  I'm just not sure what a linked table offers me.  I was hoping to be able to write my programs against the SQL server since I can't always install client access on all the machines that need to query data from our 400.  Thanks again for all the insight.
LVL 46

Expert Comment

by:Kent Olsen
ID: 37797165
The tables are linked to the database (or the server, if that visualization is easier for you).

Visual Studio creates a connection to the database (instance, etc.) an interacts with the objects that are accessible in that database (schema).  If the objects are properly linked to the database that you connect to, you should be able to access them from Visual Studio.


Author Closing Comment

ID: 37797225
Thanks.  I'm going to post a follow up question.  Thanks

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

610 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