Page 1 of 1
not need anymore dataset ApplyUpdates method ??
Posted: 18.12.2006, 05:16
by alpayd
We need ApplyUpdates after Post for commit data ( ZConnection AutoCommit properties is true and dataset in insert or edit state ) in older versions. Now not need it. Becouse data commited after post . this is a bug or normal behavior ?
Posted: 18.12.2006, 08:46
by mdaems
If Autocommit is true this means you want to commit after each statement. If not you should set it to false.
The moment you post depends on the CachedUpdates property. When true you have to 'ApplyUpdates' manually. When false the data is posted (and committed with autocommit) immediately.
At least, this is what should happen. If it's not like this it's a bug.
Mark
Posted: 19.12.2006, 07:41
by bangfauzan
Mark is right, autocommit is intended to immediately commit after each statement, regarding ExecSQL or Executed (TSQLProcessor). So it's not a bug.
If we are talking about inserting, editing or deleting data in dataset, ApplyUpdates is required only if CachedUpdates is True, regardless AutoCommit is True or False.