Welcome to Sign in | Help

Re: deadlock - SQL Server 2005

  •  01-07-2009, 6:53 PM

    Re: deadlock - SQL Server 2005

    Alex:

    cred ca asta e si cazul meu:

    http://www.sql-server-performance.com/articles/per/advanced_sql_locking_p1.aspx

    dar nu vad si solutia :)

    alex.


    Deadlock graph-ul ne-ar ajuta, din nou.

    Si daca tot cautam resurse pe net, articolul din link e gresit si incorect.
    Andres Taylor:

    So, to fulfill this query, SQL Server will traverse the index on RegionId, locking index pages and index keys with update locks on the way.

    Nu se face lock pe pagini ci intent lock ceea ce e cu totul alta mincare de peste si intent lock-urile sint totdeauna compatibile intre ele, chiar si IU si IX. Pentru o explicatie corecta cauta in Transaction Processing: Concepts and Techniques , pg. 406.
    Deadlock din cauza mixari page-lock-urilor cu row-lock-uri se poate intimpla (si se intimpla frecvent) cind are loc lock-escalation, ori lock-escalation e provacat de scan-uri mari si in cazult tau scan-ul e provocat de structura tabelelor.

    Ai incerca sa modifici tabele sa fie clustered dupa StatusCode, MessageCode ?

    http://rusanu.com
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems