AS400 to SQL via SSIS

  • Had to change up the process. Added a script task to select the data cleanly then insert.

    TRUNCATE TABLE TableA

    GO

    INSERT INTO TableA (Column)

    SELECT REPLACE(Column, '?', '') ColumnFixed, Column NotFixed

    FROM OPENROWSET('IBMDA400', 'xxx.xx.xxx.xxx'; 'username'; 'passsword', '

    SELECT

    FROM TESTDATA.Table M

    WHERE M.CRDT >= 0

    and m.POLN11 = ''1234567''

    ')

    There is an exception to every rule, except this one...

Viewing post 1 (of 2 total)

You must be logged in to reply to this topic. Login to reply