Library code snippets
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.
Related articles
Related discussion
-
Web Development Business Partners
by xstyle36 (3 replies)
-
Classic ASP : Page expires
by HelpTechIT (1 replies)
-
ASP - PHP - JSP ... which is better?
by daryljamesod (3 replies)
-
how to select multiple files at a time using Ctrl+select and upload the attachments in C# .Net 1.0?
by Ravi5308 (1 replies)
-
How reliable : Software development?
by James Crowley (1 replies)
Related podcasts
-
ASP.NET Caching and Performance
Steve Smith, owner of ASP Alliance and Lake Quincy Media joins us today to teach us about some hidden gems in ASP.NET caching and performance. Steve’s expertise in this area comes from first-hand experience as Lake Quincy’s ad system serves over 60 requests per second and handles over 150 million...
Does this works with Access Databases also?
Thanks,
Syamprasad
This thread is for discussions of Transactions in ASP.