Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6060735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:51:32+00:00 2026-05-23T08:51:32+00:00

I am developing an application which communicates with an SQL Server 2005 database to

  • 0

I am developing an application which communicates with an SQL Server 2005 database to execute some stored procedures. My client demands that all transactions be managed on the C# side and not by SQL Server, and so I am using System.Transactions.TransactionScope when accessing the database. However, I have just seen the System.Transactions.Transaction datatype, and I am confused… What are the main pros/cons of each type? Which one should I use?

Please note that I must also use Enterprise Library’s Data Access Application Block.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:51:33+00:00Added an answer on May 23, 2026 at 8:51 am

    From msdn :

    The TransactionScope class provides a
    simple way to mark a block of code as
    participating in a transaction,
    without requiring you to interact with the transaction itself. A
    transaction scope can select and
    manage the ambient transaction
    automatically. Due to its ease of use
    and efficiency, it is recommended that
    you use the TransactionScope class
    when developing a transaction
    application. When you instantiate
    TransactionScope, the transaction
    manager determines which transaction
    to participate in
    . Once determined,
    the scope always participates in that
    transaction. The decision is based on
    two factors: whether an ambient
    transaction is present and the value
    of the TransactionScopeOption
    parameter in the constructor. The
    ambient transaction is the transaction
    within which your code executes. You
    can obtain a reference to the ambient
    transaction by calling the static
    Current property of the Transaction
    class.

    You can read more about that here :

    http://msdn.microsoft.com/en-us/library/ms172152(v=vs.90).aspx

    http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope(v=vs.90).aspx

    Great (a bit old) article about transaction in .NET 2.0

    http://msdn.microsoft.com/en-us/library/ms973865.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have heard that when developing application which uses a database you should do
I am developing a Cocoa application which communicates constantly with a web service to
I am developing an application which will be connected to Access database at the
The application I'm developing communicates with an digital audio device, which is capable of
I am developing a silverlight 4.0 application which communicates with a WCF service. The
I am developing an application which demands around 100 images or maybe more to
I am developing an application which uses file upload. My client uses Symantec End
I am developing an application which has defined some intent filters (in the form
I'm developing an application which has a lot of text and also different modules
I'm developing an application which currently have hundreds of objects created. Is it possible

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.