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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:40:28+00:00 2026-06-01T21:40:28+00:00

I’m running into an issue in SQL Server 2005. A stored procedure is run

  • 0

I’m running into an issue in SQL Server 2005. A stored procedure is run in a PowerBuilder application, which then calls a C# DLL library which runs a different stored procedure.

The first procedure performs some deletes on a table based on the criteria, and the second procedure uses that table as the primary data source in order to insert into a different table. The procedures make use of some of the same joined tables for selecting, but only the one table is being modified.

The problem is this setup sometimes deadlocks, but SQL Server doesn’t do anything about it. There are try / catch statements in the DLL library that would log an error if the procedure it calls was killed due to a deadlock, but instead the library just sits waiting for the procedure to finish. I’ve let it sit for 10 minutes and it’s still deadlocked.

I tried using the DEADLOCK_PRIORITY LOW statement in the second procedure, since it needs to wait for the deletes to finish before it selects. I also tried paring that select statement down to only one table just to test it, and it still hits a deadlock. I also tried using a TRY / CATCH block with a BEGIN TRANSACTION in order to catch deadlocks in both procedures, but that didn’t help either.

Is there a way to force SQL Server to kill a transaction if it’s being blocked? I can handle errors in the DLL, but if SQL Server doesn’t return an error and just sits there, I can’t do anything with it. Thanks!

  • 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-06-01T21:40:29+00:00Added an answer on June 1, 2026 at 9:40 pm

    I would take a look at this article: http://www.sql-server-performance.com/2006/reducing-locks/

    It talks about reducing SQL Server locks which may be part of your issue here. I would recommend playing with the lock settings on the table / page (PageLocks on / off) and see if that helps with the situation.

    Instead of trying to put a patch on the issue – try to resolve the root cause.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
I would like to run a str_replace or preg_replace which looks for certain words
I am currently running into a problem where an element is coming back from
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from

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.