Results 1 to 5 of 5

Thread: sp_lock question

  1. #1
    Join Date
    Oct 2002
    Posts
    123

    sp_lock question

    When I run sp_lock, i see a lot of processes showing a type of DB... what does it exactly mean to say the process has a DB level lock? Since the mode shows a S (shared) lock , is it still a matter of any concern?

    Any more views will help in understaning this better..

    Thanks!

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Each connection will have a DB Shared lock, this is how SQL server prevents you from dropping a database if anyone is logged on to that database.

    You don't have to worry about it.

  3. #3
    Join Date
    Oct 2002
    Posts
    123
    oh ok... thanks!

    if I am looking for blocked processes, will a WAIT on a status, mean that it could be blocking a process??

  4. #4
    Join Date
    Sep 2002
    Posts
    5,938
    You can find blocking process with sp_who2 easily.

  5. #5
    Join Date
    Oct 2002
    Posts
    123
    yes that's right...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •