Transactions in ASP

Using transactions in Web applications is often advisable, particularly 
if you're dealing with databases. But many people mistakenly believe 
that, to leverage Microsoft Transaction Server, they have no choice but 
to write compiled components and register them in MTS. While this is 
usually the best approach, you can make even simple ASP scripts 
transaction-aware using the @TRANSACTION directive. Add the following 
line to the top of your ASP file:

<%@ TRANSACTION = value %>

where value is one of the following:

Required: The script will use a transaction, participating in any open
transaction or creating a new one if none is open.

Requires_New: The script will always start a new transaction.

Supported: The script will use any open transaction but will not initiate 
a new one if none is currently open.

Not_Supported: The script will neither initiate nor participate in a
transaction.

You might also like...

Comments

ElementK Journals

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only 3 numbers of interest to a computer scientist: 1, 0 and infinity”