Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Updating AS/400 Linked Server Tables from SQL Server


Updating AS/400 Linked Server Tables from SQL Server

Author
Message
forerolui
forerolui
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 Visits: 14
I´m using the iSeries Access ODBC Driver to connect to AS/400, and it works from .NET using this connection string:

"DataSource=10.254.xxx.xxx;DataBase=S1018689;UserId=yyy;Password=zzz";

I want to create a linked server with this parameters but I don’t quite know where to put mi conecction string parameters in the wizard.

Could any one help me
forerolui
forerolui
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 Visits: 14
I also have created and test an UDl file to connect to AS/400. After creating an testing the connection the result of the connection string is:

Provider=IBMDA400.DataSource.1;Persist Security Info=False;User ID=SQLODBC1;Data Source=10.254.xxx.yyy

I need to create a Linked Server from SQL SERVER 2005 to AS/400 (the above connection)

Can anyone help me?
allan_leake
allan_leake
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 Visits: 59
I have struggled with this in the past and have created a step by step document (attached) showing how you can create a linked server to the iSeries (or AS/400).

Note that you must already have iSeries Access installed on your SQL Server box.

Good luck!

/al

Note: Thanks go to JHeil at SQL Server Forums for the tip at

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49610
Attachments
Linked Server.doc (111 views, 341.00 KB)
accounts 90832
accounts 90832
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 60
I know this article is a bit old, but it should be updated. I had the exact same problem. Journaling needs to be turned on for the table you are trying to update, or insert on the AS400.
ahmadraza2278
ahmadraza2278
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 3
How can i pass the variable instead of hard coded value in the update in where clause ?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search