SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Data Transfer from SQL Server to AS400


Data Transfer from SQL Server to AS400

Author
Message
vishal.shinde
vishal.shinde
SSC Rookie
SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)

Group: General Forum Members
Points: 40 Visits: 113
Hello,
We have a requirement to transfer data from SQL tables (may be derived data) to AS400. With this SQL server also need to get intimation from AS400 as it has processed all records and updated in their system. If any issue is there AS400 need to be sent it back for that particular errornous row.
This interface will be running in real time as a scheduled job hence SQL server need this information so that when next time job will run it should not send data which is already being sent earlier and proceesed successfully by AS400. Basically we need flagging.

Has anyone done a similar kind of approach earlier?
Can we update AS400 data (I am not sure of AS400 structure) from SQL?

Please assist

Tahnk You
bayapareddy.msbi
bayapareddy.msbi
Grasshopper
Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)

Group: General Forum Members
Points: 17 Visits: 21
hi
i am also facing same problem . if you know something about this.please let me know how to solve this problem. i am some error like this:


[OLE DB Destination [26]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E21 Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E14 Description: "Could not create an acceptable cursor.".
kabaari
kabaari
SSC-Enthusiastic
SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)

Group: General Forum Members
Points: 158 Visits: 365
Hi guys,

I can tell you following:

1. if you're connecting to AS400 from the desktop using an iSeries client, you'll need that client on the SQL server.
2. Connect to AS400 using LINKED SERVER with the correct AS400 credentials
3. Make sure the the user has C/INSERT/WRITE permissions
4. Use OPENQUERY to CRUD



select ordno, orqty, fitem, fdesc
from openquery (AS400, 'select ordno, orqty, fitem, fdesc
from amflibq.MOHMST')
where ordno LIKE 'M3384%'



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