I wanted to insert into certain column in SQL Server from Oracle. It shows error (always the last column choose error with : invalid identifier). Can guide me on how to insert some values into a SQL Server table from Oracle?
INSERT INTO acc_trx_pymt_noti_ack@mssql (ATPNA_ERN, ATPNA_Status, ATPNA_Err_Desc, ATPNA_Create_Dt)
SELECT
ord_key, truck_id, create_by, create_dt
FROM
ORD_PYMT;
p/s: it works when I insert all values into SQL Server table
BEGIN
FOR rec IN (SELECT ord_key, truck_id, create_by, create_dt, sysdate, backup_truck FROM ORD_PYMT)
LOOP
INSERT INTO "acc_trx_pymt_noti_ack"@mssql
VALUES rec;
END LOOP;
COMMIT;
END;