What is an MTS Transaction? 
Author Message
 What is an MTS Transaction?

Could someone enlighten me to what is consider a transaction in MTS and why
you need to use MTS for transactions when ADO provides this
functionality....


Tue, 27 Jan 2004 23:48:52 GMT  
 What is an MTS Transaction?
MTS does it better.


Quote:
> Could someone enlighten me to what is consider a transaction in MTS and
why
> you need to use MTS for transactions when ADO provides this
> functionality....



Wed, 28 Jan 2004 00:03:40 GMT  
 What is an MTS Transaction?
A transaction is an action or a group of actions performed on a database
which either happen or don't happen, check "ACID" (can't remember what it
stands for, just the acronym).



Quote:
> Could someone enlighten me to what is consider a transaction in MTS and
why
> you need to use MTS for transactions when ADO provides this
> functionality....



Wed, 28 Jan 2004 00:02:52 GMT  
 What is an MTS Transaction?
Several reasons:

As stated in another reply, MTS does do it better...here's why:

1) Multiple database transaction synchronization WITH NO CODE EFFORT
2) Transactional processing handled in the object model - again, NO CODE
EFFORT

With MTS, especially if you're updating multiple databases, its far simpler
to design your object model around the requried transactions and forget all
that messy ADO transaction management code.  Create a connection, execute an
action ,and if anything goes wrong you call one line of code:

GetObjectContext.SetAbort.

That rolls everything back that happened in that context.  If you don't call
SetAbort, commit is implied.

What a Transaction in MTS is, fundamentally?  A transaction IS the object
model.  You make a call into a COM+ component set up to require a
transaction, and all subsequent calls within that COM+ library are included
in the transaction, unless you configure them to either not support or
require a new transaction, in which case behavior, of course, varies.

If you find you must manipualte complex data in one call, MTS is the best
way I know to make that job easy.


Quote:
> Could someone enlighten me to what is consider a transaction in MTS and
why
> you need to use MTS for transactions when ADO provides this
> functionality....



Wed, 28 Jan 2004 00:52:29 GMT  
 What is an MTS Transaction?
Are you saying that if in the following procedure I create an ObjectContext
and then do the following:

Delete a record from an ADO recordset...
Create a text file...
Make a registry entry...

and then I call SetAbort..

the whole thing will be rolled back so there is no text file made, no record
deleted, and no regestry entry made.....

How?

Or is it just a way to handle ADO object transactions?


Quote:
> Several reasons:

> As stated in another reply, MTS does do it better...here's why:

> 1) Multiple database transaction synchronization WITH NO CODE EFFORT
> 2) Transactional processing handled in the object model - again, NO CODE
> EFFORT

> With MTS, especially if you're updating multiple databases, its far
simpler
> to design your object model around the requried transactions and forget
all
> that messy ADO transaction management code.  Create a connection, execute
an
> action ,and if anything goes wrong you call one line of code:

> GetObjectContext.SetAbort.

> That rolls everything back that happened in that context.  If you don't
call
> SetAbort, commit is implied.

> What a Transaction in MTS is, fundamentally?  A transaction IS the object
> model.  You make a call into a COM+ component set up to require a
> transaction, and all subsequent calls within that COM+ library are
included
> in the transaction, unless you configure them to either not support or
> require a new transaction, in which case behavior, of course, varies.

> If you find you must manipualte complex data in one call, MTS is the best
> way I know to make that job easy.



> > Could someone enlighten me to what is consider a transaction in MTS and
> why
> > you need to use MTS for transactions when ADO provides this
> > functionality....



Wed, 28 Jan 2004 01:22:28 GMT  
 What is an MTS Transaction?
Not quite.
The database record will be restored but the text file and registry entry
will remain.  MTS requires a resource manager to roll back.  As far as I
know there is nothing available for the registry but I think I heard of one
mentioned for the file system objects.

Steve


Quote:
> Are you saying that if in the following procedure I create an
ObjectContext
> and then do the following:

> Delete a record from an ADO recordset...
> Create a text file...
> Make a registry entry...

> and then I call SetAbort..

> the whole thing will be rolled back so there is no text file made, no
record
> deleted, and no regestry entry made.....

> How?

> Or is it just a way to handle ADO object transactions?



> > Several reasons:

> > As stated in another reply, MTS does do it better...here's why:

> > 1) Multiple database transaction synchronization WITH NO CODE EFFORT
> > 2) Transactional processing handled in the object model - again, NO CODE
> > EFFORT

> > With MTS, especially if you're updating multiple databases, its far
> simpler
> > to design your object model around the requried transactions and forget
> all
> > that messy ADO transaction management code.  Create a connection,
execute
> an
> > action ,and if anything goes wrong you call one line of code:

> > GetObjectContext.SetAbort.

> > That rolls everything back that happened in that context.  If you don't
> call
> > SetAbort, commit is implied.

> > What a Transaction in MTS is, fundamentally?  A transaction IS the
object
> > model.  You make a call into a COM+ component set up to require a
> > transaction, and all subsequent calls within that COM+ library are
> included
> > in the transaction, unless you configure them to either not support or
> > require a new transaction, in which case behavior, of course, varies.

> > If you find you must manipualte complex data in one call, MTS is the
best
> > way I know to make that job easy.



> > > Could someone enlighten me to what is consider a transaction in MTS
and
> > why
> > > you need to use MTS for transactions when ADO provides this
> > > functionality....



Wed, 28 Jan 2004 03:02:51 GMT  
 What is an MTS Transaction?
Ok so MTS kind of just wraps itself around the ADO rollback methods
then.....


Quote:
> Not quite.
> The database record will be restored but the text file and registry entry
> will remain.  MTS requires a resource manager to roll back.  As far as I
> know there is nothing available for the registry but I think I heard of
one
> mentioned for the file system objects.

> Steve



> > Are you saying that if in the following procedure I create an
> ObjectContext
> > and then do the following:

> > Delete a record from an ADO recordset...
> > Create a text file...
> > Make a registry entry...

> > and then I call SetAbort..

> > the whole thing will be rolled back so there is no text file made, no
> record
> > deleted, and no regestry entry made.....

> > How?

> > Or is it just a way to handle ADO object transactions?



> > > Several reasons:

> > > As stated in another reply, MTS does do it better...here's why:

> > > 1) Multiple database transaction synchronization WITH NO CODE EFFORT
> > > 2) Transactional processing handled in the object model - again, NO
CODE
> > > EFFORT

> > > With MTS, especially if you're updating multiple databases, its far
> > simpler
> > > to design your object model around the requried transactions and
forget
> > all
> > > that messy ADO transaction management code.  Create a connection,
> execute
> > an
> > > action ,and if anything goes wrong you call one line of code:

> > > GetObjectContext.SetAbort.

> > > That rolls everything back that happened in that context.  If you
don't
> > call
> > > SetAbort, commit is implied.

> > > What a Transaction in MTS is, fundamentally?  A transaction IS the
> object
> > > model.  You make a call into a COM+ component set up to require a
> > > transaction, and all subsequent calls within that COM+ library are
> > included
> > > in the transaction, unless you configure them to either not support or
> > > require a new transaction, in which case behavior, of course, varies.

> > > If you find you must manipualte complex data in one call, MTS is the
> best
> > > way I know to make that job easy.



> > > > Could someone enlighten me to what is consider a transaction in MTS
> and
> > > why
> > > > you need to use MTS for transactions when ADO provides this
> > > > functionality....



Wed, 28 Jan 2004 03:21:00 GMT  
 What is an MTS Transaction?
Differently, yes. Better? That depends on the requirements
of your application.

Too many people use distributed transactions when they
shouldn't just because MTS programming makes it easy.

Michael D. Long


Quote:
> MTS does it better.



> > Could someone enlighten me to what is consider a transaction in MTS and
> why
> > you need to use MTS for transactions when ADO provides this
> > functionality....



Wed, 28 Jan 2004 05:24:33 GMT  
 What is an MTS Transaction?
No.

There is plenty of information at msdn.microsoft.com about
what MTS is, what it does and how it works. All of it isn't
accurate, but the main points are covered.

Michael D. Long


Quote:
> Ok so MTS kind of just wraps itself around the ADO rollback methods
> then.....



Wed, 28 Jan 2004 05:27:06 GMT  
 What is an MTS Transaction?
Atomicy, Consistency, Isolation, Durability
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpr...
tml/acidculture.asp


Quote:
> A transaction is an action or a group of actions performed on a database
> which either happen or don't happen, check "ACID" (can't remember what it
> stands for, just the acronym).

> Chris.Heywood



> > Could someone enlighten me to what is consider a transaction in MTS and
> why
> > you need to use MTS for transactions when ADO provides this
> > functionality....



Sun, 01 Feb 2004 20:42:56 GMT  
 
 [ 10 post ] 

 Relevant Pages 

1. When to use MTS transactions and ADO Transactions

2. How to use MTS Style Transactions in VB.Net

3. MTS - Microsoft Transaction Server

4. MTS Microsoft Transaction Server

5. Enlisting VBScript in an MTS/COM+ transaction

6. Migration MTS projects to 2000, Old References to Transaction Server Type Library

7. Access and MTS and Transactions

8. MTS Transactions Questions

9. MTS, ASP Pages and Transactions

10. Single transaction without MTS

11. Single transaction without MTS

12. Single transaction without MTS

 

 
Powered by phpBB® Forum Software