Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6579555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:54:48+00:00 2026-05-25T15:54:48+00:00

We have an AS400 that we need to communicate with using our .NET applications.

  • 0

We have an AS400 that we need to communicate with using our .NET applications. We currently develop web applications running on Windows 2003/2008 and have to run the AS400 client install to load the .NET provider on each of our servers running web apps that use the provider.

The provider also is loaded on our development clients through the AS400 client install.

We currently ran into an issue where when we updated our client PCs to Windows 7, we were forced to update our AS400 client access software. This of course required us to change the DLL used in our .NET projects, which will require us to load the new version of the .NET provider on the servers if we ever need to make changes to our apps.

The problem is, if we have many web applications all using this .NET provider and we suddenly load the new version, it will break all the web applications until we can change out the DLL in each project and redeploy them to the server.

I’ve been struggling with some possible solutions and would like to know which would be the best? Or, if there are any better ideas to get around this issue?

  • Linked server – We have a linked server setup through SQL 2005 to the AS400 and it does work, but it is slow and does not work with Entity Framework. This seems to be fast enough for SELECT queries, but Inserting is very slow and the queries require using more complex SQL involving OPENQUERY. I have tried setting up a view to passthrough to the DB2 table, but the queries are either slower than OPENQUERY or they don’t work sometimes.

  • Web service – I thought about wrapping all DB2 communications through a single web service where when updates come along, we would only have to worry about one point of failure. I’m worried about speed and backward compatibility here.

  • DLL wrapper – I also thought about wrapping the DB2 funcitonality in my own class library and then loading it into the GAC. Again, single point of failure. But, I’ve never messed with the GAC, so I’m not sure what new problems will be introduced and I’ll still have backward compatibility to worry about.

  • New VM Server – Another option is to setup a new VM application server with the new .NET provider and then move the applications over one by one, then the old server can be discarded.

  • Swap DLL – I’ve not tried this but I assume I could recompile each application on my developer client with the new .NET provider and then swap out the DLL that contains the DB2 access code on each of the applications on the server. (I do already use a wrapper class around the DB2 provider and it is in it’s own DLL). The only possible problem here is if our other developers are not yet on the new AS400 client version and they have an application deployed to the server. We would need to update their AS400 client at least.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:54:49+00:00Added an answer on May 25, 2026 at 3:54 pm

    We’ve decided to go with the Linked Server after figuring out how to fix the performance issues. Using OPENQUERY, everything seemed fast except the INSERTS. Using the EXECUTE method made the INSERTS fast as well.

    Here are some examples of the queries we’re using incase this may help someone else…

    Select

    SELECT * FROM OPENQUERY(Linked_Server_Name, ‘SELECT * FROM table WHERE field=”Data”’)

    Insert

    EXECUTE(‘INSERT INTO Server.Library.Table (field1, field2) VALUES (1, ”two”)’) AT [Linked_Server_Name];

    Update

    UPDATE OPENQUERY(Linked_Server_Name, ‘SELECT * FROM Library.Table WHERE field=”Data”’) SET field=’New Data’ WHERE field=’Data’

    Delete

    DELETE FROM OPENQUERY(Linked_Server_Name, ‘SELECT * FROM Library.Table WHERE field=”Data”’) WHERE field=’Data’

    Note: To escape the single quotes within the SQL, use another single quote. It is not a double-quote.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to connect to a AS400 server using the .net classes. I have
Ok So I have an AS400/iSeries running v5r4. I have an application that was
I have written a Windows Forms application in C#, .NET framework 2.0, that uses
We have a program on our AS400 that takes in a number, encrypts it
Im using access 2003 to view some as400 tables and databases. I would need
I have an as400 system that stores all information about our articles, like price,
Have just started using Google Chrome , and noticed in parts of our site,
I'm using pyodbc to query an AS400 (unfortunately), and some column names have hashes
We have need to connect to an AS/400 from .NET (C#) and access (read
Have you ever seen someone try to implement the MVP pattern with ASP.NET Web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.