An apology if my question seems elementary but I'm relatively new to both SQL and MyDAC
I have been employing START TRANSACTION, COMMIT and ROLLBACK by wrapping them around queries directly within a TMyQuery.SQL.Text string which I presume is OK ... it appears to work just fine
Is it more correct to perhaps use the StartTransaction / Commit / Rollback methods of TMyConnection instead ? ... better peformance maybe ? and if I use these, where is the best place to call from ... for StartTransaction maybe TMyQuery.BeforePost ?. Then where is best for calling the Commit(), Rollback methods ? ... the MyDAC Transaction demo does this from buttons which is not really an option in this case.
thanks and best regards
Pete B