On 9/7/07, Yves Goergen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> in a scenario when multiple operations need to be transactionally
> synchronised, I have a file that must be deleted when the database
> records are added successfully, but the database operations must be
> rolled back, if the file cannot be deleted.


Assuming the data files you are working with are of a manageable size,
either read the file into a variable in your code and then process it if the
file delete succeeds, or import the data file into a work table in SQLite,
and then attempt the file delete.

Reply via email to