Re: Transactions and sub Procedures

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,


In a complex transaction, where many components are involved, like
database AND objects in memory, a possible solution is to use some kind of
transaction manager that will commit or rollback each components
appropriately. COM+ has such transaction manager, but that is probably an
overkill. If all the modifications occur in a single database, use the SAME
database object if you want to include all the modifications in the
transaction. You have to organize your database object scope of existence
appropriately, and that SHOULD be a piece of cake.


Hoping it may help,
Vanderghast, Access MVP

"Diarmuid" <diarmuid@xxxxxxxxxxxx> wrote in message
news:%23SJyBCaRFHA.3104@xxxxxxxxxxxxxxxxxxxxxxx
> Ok, I want to set up a DAO transaction, which I have in my main procedure.
> But if I call sub procedures, any updates there won't be included in the
> transaction. I'd like to include the sub procedures, as I may need to
> rollback the whole lot.
> And advice on how I would do this?
> Thanks
> Diarmuid
>


.



Relevant Pages

  • Re: Help - Timing Logic
    ... server application, both of which ran on the same box. ... the client applications and 'lodging' them in the database. ... Another part of the server application was dedicated to retrieving messages ... commit transaction ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Help - Timing Logic
    ... put a trigger on the database table. ... Transaction and Database Locking - look at isolation levels / settings ... Maybe implement a message broker ... ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Help - Timing Logic
    ... build a trigger on the database .. ... Transaction and Database Locking - look at isolation levels / settings ... If you need to implement a locking mechanism / or / logging mechanism / or / a checking mechanism to avoid duplicate messages caused by multi-threading ... ... message broker gets all the necessary messages or message id's from the database to be sent ... ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Help - Timing Logic
    ... put a trigger on the database table. ... Transaction and Database Locking - look at isolation levels / settings ... Maybe implement a message broker ... ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Help - Timing Logic
    ... If you need to implement a locking mechanism / or / logging mechanism / or / a checking mechanism to avoid duplicate messages caused by multi-threading ... ... Is it the READ from the database ... ... Perhaps a stored proc may be faster to execute and return the values as opposed to building the transaction in the code. ... implement as above locking only the records you retrieve / update - need to watch out here for table locking ... ...
    (microsoft.public.dotnet.languages.vb)