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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:21:36+00:00 2026-05-31T17:21:36+00:00

I have a scenario where I have to update multiple rows in a table

  • 0

I have a scenario where I have to update multiple rows in a table using a SQL Server stored procedure.

I am using threading to make updates fast (C# console application + ADO.NET).

Each thread will update different row set from that table.

I am curious about that will it cause any deadlocks in SQL?

More Details:

I have independent threads and they do not share any common resources. I am more worried about SQL locking mechanism as multiple threads are calling same Stored Proc to update same table but different record sets (different rows).

  • 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-31T17:21:37+00:00Added an answer on May 31, 2026 at 5:21 pm

    It should not cause any deadlocks (as long as there are no strange and complicated constraints).

    It could cause delays where the threads have to wait for each other when you use heavy TransIsolation like snapshot. But with the default ReadCommitted you should be OK.

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

Sidebar

Related Questions

Scenario I have a stored procedure written in T-Sql using SQL Server 2005. SEL_ValuesByAssetName
I have a scenario where I would like to update multiple fields in multiple
I have multiple threads that are processing rows from the same table that is
I have a certain scenario where inserts and updates are done on multiple tables
I'm new to MySQL. I'm using this to update multiple rows with different values,
using : SQL Server 2008 R2, Entityframework 4.3.1 my scenario : I read my
I have scenario, I have two update panels on the page (both have update
I have a scenario where I have multiple versions of the same assembly that
Given a scenario where we have multiple lists of pairs of items, for example:
I have 3 tables in SQL Server 2008 Clubs with a PK of ID

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.