Solved

Sql Server and iSeries linked server

Posted on 2012-03-26
7
605 Views
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
0
Comment
Question by:bergertime
[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
  • 2
  • 2
  • +1
7 Comments
 
LVL 45

Accepted Solution

by:
Kent Olsen earned 200 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.

  http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_27627456.html

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


Good Luck,
Kent
0
 
LVL 27

Assisted Solution

by:tliotta
tliotta earned 200 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.

Tom
0
 
LVL 16

Assisted Solution

by:theo kouwenhoven
theo kouwenhoven earned 100 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?

Regards,
Murph
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 27

Expert Comment

by:tliotta
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.

Tom
0
 
LVL 2

Author Comment

by:bergertime
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.
0
 
LVL 45

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.



Kent
0
 
LVL 2

Author Closing Comment

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

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

738 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