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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:56:43+00:00 2026-05-13T08:56:43+00:00

Having a weird problem. I’m testing an ASP.NET application I wrote that queries SQL

  • 0

Having a weird problem. I’m testing an ASP.NET application I wrote that queries SQL server via AJAX. The application is using LINQ-to-SQL to load data from approx 8 or so tables in a join, and every once in a while, the call to SQL server locks up and never returns.

My first thought was that it was getting deadlocked, but from what I’ve read, SQL server should elect to kill one of the offending threads if this happens. In the case of this app, there aren’t any other users accessing the database either, so I don’t see how this could be the problem.

Other symptoms:

  1. The processor usage on the server spikes at around 40% when executing this call, and stays there, even after the application is closed (“Stopped” in Visual Studio).

  2. The server continues executing the call until I actually go and kill the Visual Studio web server (Cassini) that lives in the tray.

  3. When looking at what the SQL server is doing, all we can see is that it is executing the LINQ-to-SQL call, nothing looks out of the ordinary.

Anyone have any thoughts about what this “smells” like?

Thanks,
Sam

  • 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-13T08:56:44+00:00Added an answer on May 13, 2026 at 8:56 am

    First, update your sql server to the latest service pack level. You might want to look at the Cumulative Updates that have been released since that service pack and see if anything sounds like your particular problem. It may have been resolved.

    SQL Server will elect to kill off one of the items in a dead lock, but it also depends on what the query time out settings are. If your timeout is high enough (300 seconds…), SQL Server could continue executing the call for awhile.

    If possible you might use NOLOCK on your tables in the sql call so that it is a non-blocking select. For Linq-To-Sql, set the Transaction Isolation level to Read Uncommitted, it is the same as NOLOCK.

    I would further put a trace on the linq-to-sql calls, and re run them in sql profiler to see if there is something that can be tuned a bit better, like better indexes, etc.

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

Sidebar

Ask A Question

Stats

  • Questions 306k
  • Answers 307k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Okay that was a dumb question :) Here's the obvious… May 13, 2026 at 9:23 pm
  • Editorial Team
    Editorial Team added an answer Answering the three part question in order... It probably is… May 13, 2026 at 9:23 pm
  • Editorial Team
    Editorial Team added an answer Since this is a "very small simple and useful program"… May 13, 2026 at 9:23 pm

Related Questions

I having a weird problem with Entity Framework with MySql database. Here's the code
I'm having a weird problem with some JavaScript/DOM code I've been playing with. I'm
I am having a weird problem with variable values. This is the code (it
i'm having a bit of a weird problem. I programmed a asp.net mvc app
I'm having a weird problem on deployment while trying to use Microsoft Enterprise Library's

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.