Subject | Re: [IBO] Problem with Stored Procedure - Server AutoCommit - Commit - CommitRetaign |
---|---|
Author | Helen Borrie |
Post date | 2004-11-23T01:12:06Z |
At 04:07 PM 22/11/2004 +0100, you wrote:
must use an exception handler to trap the lock conflict and condition your
code accordingly.
>Now, it is clear.No. If you have to roll back, then you don't want the report to run!! You
>
>I have this setting:
>Isolation= tiConcurrency
>RecVersion=True; <-- In concurrency, RecVersion isn't relevant
>
>Following there is new code;
>
> if IB_Transaction2.TransactionIsActive then
> IB_Transaction2.Rollback
> else
> begin
> try
> IB_Transaction2.StartTransaction;
> try
> IB_StoredProcedureUpdateData.ExecProc;
> except
> IB_Transaction2.Rollback;
> end;
must use an exception handler to trap the lock conflict and condition your
code accordingly.
> tryHelen
> IBOQueryReport.Prepare;
> IBOQueryReport.Open;
> except
> IB_Transaction2.Rollback;
> end;
>
> IB_Transaction2.Commit;
> except
> IB_Transaction2.Rollback;
> end;
> end;