‎2008 Sep 08 9:09 AM
Hi all,
I need to update one field in external database (oracle).
When I run the function which implements this update statement, I do not get any execption or error message. But when I check the record, the field is not changed.
EXEC SQL.
open dbcursor for
update my_table set status = :lv_status
where id like :lv_id
ENDEXEC.
The DB-user has rights to write.
Select statements are working fine.
Any idea what I am doing wrong?
Thnx!
‎2008 Sep 08 9:13 AM
Hi,
Either In ORACLE database use,
SET AUTOCOMMIT ON.
or use
EXEC SQL.
open dbcursor for
update my_table set status = :lv_status
where id like :lv_id
COMMIT WORK.
ENDEXEC.
Regards,
Anirban
‎2008 Sep 08 9:23 AM
‎2008 Sep 08 9:30 AM
‎2008 Sep 09 8:24 AM
>
> Hi all,
>
> I need to update one field in external database (oracle).
> When I run the function which implements this update statement, I do not get any execption or error message. But when I check the record, the field is not changed.
> EXEC SQL.
> open dbcursor for
> update my_table set status = :lv_status
> where id like :lv_id
> ENDEXEC.
>
> The DB-user has rights to write.
> Select statements are working fine.
>
> Any idea what I am doing wrong?
>
> Thnx!
try
EXEC SQL.
update my_table set status = :lv_status
where id like :lv_id
ENDEXEC.
‎2008 Oct 24 10:58 AM
Thank You to everyone for the response. It started to work without to change my code. Strange but true.
I got no feedback from basis, maybe they changed some setting.
Anyway, Thank You!