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

  • Home
  • SEARCH
  • 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 944229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:33:30+00:00 2026-05-15T22:33:30+00:00

Environment: SQL, LINQ, C# I have 2 WinForms running on different computers. They all

  • 0

Environment: SQL, LINQ, C#

I have 2 WinForms running on different computers.
They all hit the same database, and it’s extremely critical that these forms don’t affect the state of the database. I have a couple of questions.

WinForm1, the linq queries in this form are all try/catched, if there is a concurrency conflict, I believe this will never fail (correct me if I’m wrong)

WinForm2, the linq queries in this form can conflict with the ones in WinForm1, but each query is also try/catched.

Question: If there are any concurrency conflicts between these forms, is it possible that the database will be locked out (no other queries can access the database)? If not, is there any situation where a concurrency conflict can make the database unqueriable?

  • 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-15T22:33:31+00:00Added an answer on May 15, 2026 at 10:33 pm

    LinqToSql uses Optimistic Concurrency, which does not lock the database.

    Deadlocks are the actual threat, not concurrency conflicts.

    The best approach to preventing deadlocks is to keep updates small and fast.

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

Sidebar

Related Questions

I have a SQL Server 2005 database hosted on a shared hosting environment. Unfortunately
.Net MVC application also running Linq-to-SQL. I have seen many articles on grids that
Environment: SQL Server 2005/2008, pubs database I have inserted into a table variable a
Does LINQ to SQL work in connected environment or disconnected environment? I mean if
Details are as follows: Environment: SSRS 2008 Server, SQL Server 2008 for database, Report
In .NET 4 and multicore environment, does the linq to sql datacontext object take
I'm playing with LINQ-To-SQL in .NET 3.5 and have built some classes based on
I'm having some problems with the Sql query generated by LINQ, Since my environment
Environment: SQL Server 2005 SP2 (9.0.3077) Transactional Publications (Production and Beta) I have a
Working environment is SQL Server 2000. I have a table with no indexes, no

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.