Table Read / Update Basics

  • Hi All

    This sounds to be a silly question, but i nees ur views on this.

    How does a Read Commited (SQL Default ) Isloation Level behave on Updation

    for example, if a row is been updated, SQL server locks that particular row, and relaeases once the update is complete.

    I am facing some problems, when the table is updated, its not locking that particular row, it seems to be locking a bunch of rows, so i cant read some rows. select statement has to wait untill that row is been updated.

    Cheers

  • I believe you can limit that a bit by using the WITH (ROWLOCK) hint on the update.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

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

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