Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Commit after Modify

Former Member
0 Likes
12,204

Hi,

When i use the commend modify in program (to modify data base tables) i don't write commit and

The tables are update how?

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
5,060

Hi Michael,

While using INSERT, MODIFY , UPDATE, DELETE statements, to manipulate database table,

we dont need to give commit work.

When the program ends, automatically the data will be updated unless any runtime error comes.

if any runtime error comes, the "ROLL BACK" happens automatically.

So no need to write COMMIT WORK statement.

Regards,

Nitin.

5 REPLIES 5
Read only

Former Member
0 Likes
5,060

Hi,

When u modify the table it will immediately effects to the DB table....it gets modify

the DB table immediately if field is already there or else it simply inserts the value to DB table without writing the commit stmt........

The DB table gets updated immediately...

Regards

Kiran

Edited by: Kiran Saka on Feb 9, 2009 10:15 AM

Read only

Former Member
0 Likes
5,060

Hi,

Normally if session going to change(Internal->internal or internal->external) at that time you require to use commit.

even you can use roll back that changes too after using commit.

-Rick

Read only

Former Member
0 Likes
5,061

Hi Michael,

While using INSERT, MODIFY , UPDATE, DELETE statements, to manipulate database table,

we dont need to give commit work.

When the program ends, automatically the data will be updated unless any runtime error comes.

if any runtime error comes, the "ROLL BACK" happens automatically.

So no need to write COMMIT WORK statement.

Regards,

Nitin.

Read only

Former Member
0 Likes
5,060

Hi ,

The statement modify directly modifies the table and implicitly calls the commit work.... so if you don't want that to happen write this modify statement in form....endform...

and call that form using the statement

perform <form_name> on commit.

then until you dont mention commit work it will not update

Regards,

Siddarth

Read only

Former Member
0 Likes
5,060

HI

an program has its own logiacal unit of work.

when it is executed and accompolished it go for auto commit.

so it happenes

regards