Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi and Interbase

Status
Not open for further replies.

mandarine

Programmer
May 20, 2000
19
FR
Hello,
What is the difference in using "sanone" and "sacommit" in AUTOSTOPACTION propertie of ibtransaction (IBX) component?

Actually i'm using in ibtransaction settings:

read_committed
no_rec_version
wait

the properties that i'm using are:
Active=false
Autostopaction=sanone
default action=tacommit

All of this are correct to use in a network???

Thanks:)
 
CarlosProgrammer,

According to the Help file, AutoStopAction controls what happens when transactions are implicitly stopped. It says, "Transactions are implicitly stopped when AutoStopAction is not saNone and the last dataset associated with the transaction closes."

saNone indicates that transactions aren't implicitly stopped, meaning you have to stop them yourself, whereas saCommit automatically commits transactions that are implicitly stopped.

The help file also notes that the property only works with TDataSet descendants and that you should set the property to saNone if your transaction involves TIBSQL components.

As far as the correctness of use, it really depends on your application. If you're unsure that the implicit transactions are serving your needs, then you really should control the transaction explicitly. Yes, it takes more work, however, you then know exactly what's going on.

Hope this helps...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top