Query that produces Intra-Query Parallelism Deadlock

Posted on 2007-08-01
Last Modified: 2013-11-26
Can anyone point me to a query that will consitently produce a 8650 Intra-Query Parallelism deadlock message?

Or can anyone tell me if 8650 will be the exception number passed in the SqlError within the SqlException?

I'm using SQL 2000 SP4 I believe.  On the client side I'm using VS2003, .NET 1.1, VB.NET

Thank you!
Question by:mericks1
    LVL 42

    Expert Comment


    Author Comment

    Thanks Eugene,  I tried that query and I'm guessing they are using a view which may contribute to the issue, so I can't really duplicate that given my database.

    As far as the solution, that's pretty much what I've been running into, either re-write it or single thread it.  Single threading it might be an option, but the main issue here is that it's not consistently failing, so I need to be able to gracefully handle this exception from the client, which is a .NET 1.1 windows service.  I can simulate this sortof, with a raiseerror, but that will have an exception number of 50000, which I'm guessing will not be the same as the real exception.


    Author Comment

    Ok, I found it.  I wasn't looking though the SqlError collection in the SqlException, I was looking at the SqlException.Number which apparently holds the number of the first exception, which in this case was 50000.  The client was specifically looking for 8650 and wasn't finding it.  So I just itterate through the SqlErrors collection looking for 8650 to determine if we've had a intra-query parallelism deadlock.

    Thanks for you help!

    LVL 1

    Accepted Solution

    PAQed with points refunded (125)

    EE Admin

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
    Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now