Row or Page lock ?

  • Silly question: what is the default lock for sql server 2008 R2 ?

    ddfg

  • Depends on the number of rows affected, the amount of locks and lock memory already and probably a few other factors.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • It depends,

    let take an example of an update statement, if the number of rows effected by the statement is one or little more it will put row level lock, if its more (suppose most of the rows of table) it will put table level lock.

    as gail said its depend on the no. of rows effected by the statement.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply