Sory for the delay, but I was busy pasking it all
The sources I've sent you are grouped in 3 parts.
1) The first part contains the tables and procedures that reside in the MSSQL server database. Some of the tools in that part are universal so they could be used for general purposes. The main instrument is the procedure "pds_tran_handler1".
This proceduere is used to start transaction in the informix side of the transfer, to transfer data and commands and to commit the transaction in the informix side. It also handles error conditions in both Informix and MSSQL sides.
The base of the data transfer to the informix database is procedure "pds_ttab2params2". It converts a temporary table into character data stream which is received by procedure "pds_put_tcmds" in the informix side.
2) The second part of the script contains the tables and procedures that reside in the Informix server database. The first three of the procedures are the primary instruments:
- "pds_get_tcode": starts the transaction in the informix side
- "pds_put_tcmds": receives the character stream of data, transforms it and puts it into the transaction buffer
- "pds_exec_tran": commits the transaction in the informix side; In that procedure you had to add code for operations you want to execute;
Procedure "pds_h_newcli" is an example how you can expand the flexibility of operation execution schema.
3) The third part of the script is an example stored procedure for MSSQL server that illustrates how data could be sent and written to the informix.
All of that code I wrote because I didn't found a way to write directly from MSSQL to Informix. If there is a simple way I will probbably look stupid but this thing has done its jobs well and stable.
If I missed something in the pack just write back and I'll complete it. If these tools work well I'll be glad to hear your story.
Good Luck and All The Best
