delphic++builderfiredacparadox

FireDac - how to use transactions with paradox tables


unfortunately i have to work with ancient piece of software, that uses paradox tables. The following code gives me exception:

fdcMainPX->TxOptions->AutoCommit=false;
fdcMainPX->StartTransaction(); <---

"Project xxx raised exception class EFDException with message '[FireDAC][Phys][ODBC]-303. Capability is not supported'"

It appears, that windows odbc driver for paradox doesn't support transactions. I suppose that ole jet engine allows transactions with paradox but i'd rather use Firedac over ADO or BDE. How to set up connection with firedac to use MS Ole db ? Maybe there is another way? I am using C++ Builder XE6 Pro with Firedac


Solution

  • Paradox DBMS doesn't seem to be capable of transactions at all (maybe its new version, part of the Corel product is, but that doesn't seem to be your case).

    However, if you just want to keep consistency of certain data batches in a single connection session, you can use cached updates.