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 697273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:09:04+00:00 2026-05-14T03:09:04+00:00

Middle-tier component will execute the data access routines in application. The component will call

  • 0

Middle-tier component will execute the data access routines in application. The component will call several SQL Server stored procedures to perform database updates. All of these procedure calls run under the control of a single transaction.
The code for the middle-tier will implement the following objects:

SqlCommand comm = connection.CreateCommand();
SqlTransaction trans;

How i must add code to component to specify the highest possible level of protection against such errors(two users try to update the same data concurrently).

  • 1 1 Answer
  • 1 View
  • 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-14T03:09:04+00:00Added an answer on May 14, 2026 at 3:09 am

    you use IsolationLevel:

    using (SqlConnection con = new SqlConnection(connectionString))
    {
        using (SqlTransaction tran = con.BeginTransaction(IsolationLevel.Serializable))
        {
            SqlCommand cmd = con.CreateCommand();
    
            // etc...
    
            con.Open();
    
    
        }
    }
    

    You will still need to catch the appropriate SQL exceptions…

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

Sidebar

Related Questions

How do I deploy an ADF business component to the middle tier and call
We're embarking on a new middle tier service that will allow internal client systems
I have inherited a middle tier system with some multi-Threading issues. Two different threads,
I am using T4 to generate some screens and middle-tier code for a project,
I want to develop an enterprise app that includes a WindowsForms presentation layer, middle-tier
I've seen a trend to move business logic out of the data access layer
In medium to large organizations what team or group typically support middle tier components
I am in the middle of a discussion with a colleague about the best
I'm in the middle of writing code in .Net to draw something in my
In the middle of a Perl script, there is a system command I want

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.