spt_values

  • hi,

    i have noticed that some SP hold IS lock on table spt_values in master db. Especially when i used table variable or derived table in it.

    Everything what i read about spt_values mentioned that spt_values is only for lookup. But is it true? What is your experience? 

    I'm afraid that IS lock will be possible problem with another process using spt_values not for select.


    Kindest Regards,

    vbenus

  • I don't think you'll see much of a problem because "IS" shares are not exclusive and rank as one of the lowest locks.  I haven't had a problem with it, yet, and my group of 200 insane users and a wad of scheduled tasks running simultaneously has not yet caused an issue.  Maybe I'm just lucky...

    --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