Avatar of as400guys
as400guys asked on

How to create a Linked server to AS/400 in SQL express server 2005?

Installed a SQL server 2005 express edition on a PC and trying to create a linked server to a AS/400.Is it possible to create a linked server like this? If yes can some one kindly adivse on how to go about setting it up. Our knowledge on SQL server is bare miniimal.We want to open a table that is residing on the As/400 in sql .Please advise.Thanks.
Operating SystemsDB2Microsoft SQL Server 2005

Avatar of undefined
Last Comment
as400guys

8/22/2022 - Mon
Mark Wills

the driver is the key to succes, there is one on the MS site (as used below), believe there is a better one for windows / linux / unix machine you can download from:
http://www.ibm.com/software/data/db2/udb/support/downloadv8.html

However for AS400 or Mainframe, you neet to get from IBM, or pay fro a commercial product such as :
There is also a few commercial drivers which do offer performance tuning capability etc... http://www.datadirect.com/products/odbc/odbcoverview/index.ssp

check connection strings (will need to scroll to MySQL) via: http://www.connectionstrings.com/ 
There are a few links  and "how to" if you want to search, and check the Microsoft books on http://msdn.microsoft.com/en-us/library/ms190479.aspx

Basically (using the MS driver as an example)...

EXEC sp_addlinkedserver
    server='LINKEDDB2',
    @srvproduct='Microsoft OLE DB Provider for DB2',
    @catalog='DB2',
    @provider='DB2OLEDB',
    @provstr='Initial Catalog=PUBS;Data Source=DB2;HostCCSID=???;Network Address=???;Network Port=???;Package Collection=admin;Default Schema=admin;'



ASKER
as400guys

Not sure how to close this question, this did not work for us as we had Express server edition only.So instead we used Access to resolve our issue.
Thanks.
ASKER CERTIFIED SOLUTION
Mark Wills

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
as400guys

Would have worked if we had a full blown version unfortunately we do not , however I did learn on how the linked servers work. Thank you for your time and patience.
Your help has saved me hundreds of hours of internet surfing.
fblack61