DB2 UDB API stage does not rollback
Posted: Thu Nov 22, 2007 2:59 pm
I am trying to make DB2 UDB API stage rollback when there is bad data that gets rejected by DB2, but it does not. It just creates a warning and continues inserting the rest of the records.
For examlpe out of 200 records 10 have a bad date. DB2 inserts 190 instread of rolling back to the last successful transaction.
I did this by tring to insert an invalid date to a DB2 table. Instead of aborting the job and rolling back the records that were part of the same array, it just raises a warning and keeps going without rolling back.
Is this a DB2 UDB API stage bug or a setting in the CLI Driver? Any ideas on how to get this to work?
Array size: 50
Transaction commit size: 50
Number of records processed: 200
Driver: [IBM][CLI Driver][DB2/NT]
![Question :?:](./images/smilies/icon_question.gif)
For examlpe out of 200 records 10 have a bad date. DB2 inserts 190 instread of rolling back to the last successful transaction.
I did this by tring to insert an invalid date to a DB2 table. Instead of aborting the job and rolling back the records that were part of the same array, it just raises a warning and keeps going without rolling back.
Is this a DB2 UDB API stage bug or a setting in the CLI Driver? Any ideas on how to get this to work?
Array size: 50
Transaction commit size: 50
Number of records processed: 200
Driver: [IBM][CLI Driver][DB2/NT]
![Question :?:](./images/smilies/icon_question.gif)