-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: namachi
Message 1 in Discussion
Hi ,
Please clear my doubt, this is about "Autocomplete".
MS says we can automatically roll back a transaction but when i fire 2
Sql's in a class the first one is comitted & the second one has an error &
is not comitted...!
I use the below:
1. <AutoComplete(TransactionOption.Supported)> - for writing the class
2. I Import System.EnterpriseServices & Imports
System.EnterpriseServices.ServicedComponent
3. I also Inherit the ServicedComponent
4. Depending upon the return value of ExecuteNonQuery / ExecuteScalar i
go for either ContextUtil.DisableCommit() or ContextUtil.SetAbort()
Have i left out anything else or will this suffice?
Please let me know, Thanks in advance...
_________________________________________________________________
Contact brides & grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag
Only on www.shaadi.com. Register now!
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]