ODBC - Transaction Handling
Posted: Mon Jun 16, 2014 11:40 am
Hi,
I am running DataStage 8.7 on Linux environment.
I have a requirement to extract data from Oracle and load into a table named "table1" in SQLServer. But before loading "table1" i am required to delete all the existing records and then insert the new ones.
Tricky thing, is "Delete and insert" should be part of a transaction. i.e.
If "If insert fails, then delete should be rolledback".
How can a make both Delete and Insert as part of single transaction?
Appreciate your responses
I am running DataStage 8.7 on Linux environment.
I have a requirement to extract data from Oracle and load into a table named "table1" in SQLServer. But before loading "table1" i am required to delete all the existing records and then insert the new ones.
Tricky thing, is "Delete and insert" should be part of a transaction. i.e.
If "If insert fails, then delete should be rolledback".
How can a make both Delete and Insert as part of single transaction?
Appreciate your responses