IF SQLSETPROP(lnConnection,[Transactions],2) != 1 && starts transaction
return someError
ENDIF
BEGIN TRANSACTION
&& also start transaction on local Cursoradapter's so they could be
&& rolled back if neccessary
..
make some updates
..
&& and if all updates/inserts returned .T.
&& try to commit them
IF SQLCOMMIT(lnConnection) = 1
END TRANSACTION && also commit local changes
ELSE
SQLROLLBACK(lnConnection)
ROLLBACK
ENDIF
&& and finally change the transactionmode to automatic again ..
SQLSETPROP(lnConnection,[Transactions],1)
????
i really would appreciate your comments .. since you seem to have deep knowledge in the field of transactionmanagement and not only this, since i read much of your 'bugreports' :-) here on the UT that state that you often know much about 'internal workings' of VFP code
Regards
Christian