Page 1 of 1

Delete statement in DRS Stage for Oracle database

Posted: Mon Dec 13, 2010 9:19 am
by nani0907
Hi,

Iam using the DRS stage for delete and insert process to oracle table with update action as "Insert New rows Only" .In before tab , i need to delete based upon the incoming values . Is it possible in DRS stage. When i mention harcoded values ,it works properly.Please let me know how to delete based upon incoming values.

Posted: Mon Dec 13, 2010 11:31 am
by chulett
It is not possible to leverage any incoming row data in the 'before' or 'after' SQL tabs.

Posted: Mon Dec 13, 2010 2:58 pm
by ray.wurlod
You would need two jobs to achieve this or, perhaps, user-defined SQL to call a stored procedure.

Posted: Tue Dec 14, 2010 7:28 am
by nani0907
Thanks ray..

Posted: Tue Dec 14, 2010 7:32 am
by chulett
It's important to understand here that those areas are only executed once, not per row - hence their name and the problem.