Why doesn't ApplyUpdates update the database instantly?

This FAQ assumes you are using Firebird with Delphi.

ApplyUpdates only runs the INSERT, UPDATE or DELETE statements against the database. You need to explicitly commit the transaction to get the changes into database. If you don't do that, the transaction will eventually get committed in destructors of your database objects when application is closing.

If you have problem seeing the data from other connections, it's because the transactions that started before that one which changed the data, cannot see the changes. You need to commit them, and start a new transaction to see the change, or use read committed type transaction isolation level.

Do you find this FAQ incorrect or incomplete? Please e-mail us what needs to be changed. To ensure quality, each change is checked by our editors (and often tested on live Firebird databases), before it enters the main FAQ database. If you desire so, the changes will be credited to your name. To learn more, visit our add content page.

All contents are copyright © 2007-2024 FirebirdFAQ.org unless otherwise stated in the text.

Links   Firebird   News   FlameRobin   Powered by FB: Home Inventory   Euchre  
Add content   About  

 Installation and setup
 Backup and restore
 Connectivity and API
 Errors and error codes