Page 1 of 1
behaviour after commit / rolback
Posted: Fri 25 Jul 2008 12:31
by mariusz
How can I control an TQuery behaviour after call "commit" or "rollback" from my application code? Now, when I call commit or rollbank, after this I have no data im my query -> crdbgrid.
regards
Posted: Sat 26 Jul 2008 22:47
by xstef
Hi, commit and rollback close the cursor in the database, that is why you do not see any data. To be able to see data you must use commitretaining or rollbackretaining which do not close the cursor in the database and retain the data in the dataset.
Stefanos