• Craig Farrell (10/6/2010)


    WayneS (10/6/2010)


    Craig Farrell (10/6/2010)


    Answer: No and no.

    This code, as is, will not deadlock independently. There's no transaction calls.

    What is the serverwide setting for isolation?

    Craig, did you consider the effect of parallelism on the deadlocks? I can see this potentially being an issue. Again, the deadlock graphs will help show what's really going on.

    Hm, I've seen parallelism cause timeouts, but I've never seen it cause a deadlock without an explicit two part transaction. You wouldn't happen to have some research links handy, would you?

    Research links, no. But I've seen deadlocks caused by parallelism before myself... so self-research - yes.

    Wayne
    Microsoft Certified Master: SQL Server 2008
    Author - SQL Server T-SQL Recipes


    If you can't explain to another person how the code that you're copying from the internet works, then DON'T USE IT on a production system! After all, you will be the one supporting it!
    Links:
    For better assistance in answering your questions
    Performance Problems
    Common date/time routines
    Understanding and Using APPLY Part 1 & Part 2