I have written a small agent to insert some data from Notes to a DB2 table. One of the columns is a Date/Time field which goes to a DB2 Timestamp field. I created a field with the timestamp in the format required by DB2. I can select with it fine but when I try to add a row using the AddRow and UpdateRow methods in the ODBCResultSet Lotus Script class, I get the SQL error that the TimeStamp is the wrong format. I can put the same value in an INSERT SQL statement and execute it correctly from the DB2 Command Center. If I remove the Timestamp field (which has a default in the DB2 table) the Row is created in DB2 correctly. I am somewhat perplexed.
Subject: Problems with Timestamp values using ODBCResultSet class to move data to DB2
No idea really, but for Sybase, I had to strip off the time zone characters.
- Matt