Subject | RE: [IBO] Problem with Stored Procedure - Server AutoCommit - Commit - CommitRetaign |
---|---|
Author | Jason Wharton |
Post date | 2004-11-22T16:09:23Z |
It would be wise not to swallow the exception and do something like this:
> if IB_Transaction2.TransactionIsActive thenJason Wharton
> IB_Transaction2.Rollback
> else
> begin
> IB_Transaction2.StartTransaction;
> try
> IB_StoredProcedureUpdateData.ExecProc;
> IBOQueryReport.Prepare;
> IBOQueryReport.Open;
> IB_Transaction2.Commit;
> except
> IB_Transaction2.Rollback;
> Raise;
> end;
> end;