Originally posted by: SystemAdmin
I need to insert records into a db2 table where we want DB2, not DSTX, to default the current timestamp on a LD_TS field. LD_TS is defined as 'TIMESTAMP NOT NULL DEFAULT CURRENT TIMESTAMP'. I was thinking that if I didn't include the LD_TS field in my treetype, that DSTX would not pass anything for the LD_TS and DB2 would correctly default the field. That is not the case. From looking at the DBL, DTSX not using my treetype to dynamically create the SQL so it appears as though DSTX is defaulting a "NULL" to LD_TS. My error is "Message:
IBMCLI DriverDB2 SQL0407N Assignment of a NULL value to a NOT NULL column " " is not allowed."
If you have encountered this problem before, I would appreciate any tips or suggestions.
Thank you!
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange