>>>Do you need SQLSETPROP(oApp.oVar.sqlHandler,"Transactions",DB_TRANSMANUAL)
>>>
>>>Suhashegde
>>
>>Yes, if you want to save ALL records or none.
>>
>>About 90% of time the user works with ONE table, that is why I leave TRANSACTIONS to be AUTOMATIC. but In that class I need to save either ALL records either NONE of them.
>
>Then what would SQLEXEC(handle,"Commit Transaction") DO ?
Just commit all changes I sent back to SQL Server.
This is something like:
BEGIN TRANSCATION
.....
IF SomethingNotGood
ROLLBACK
ELSE
COMMIT
ENDIF
in VFP.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.