release a lock from table that occured while running a stored procedure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vikasavinash
    New Member
    • Apr 2014
    • 1

    release a lock from table that occured while running a stored procedure

    Hi All,

    I would like to know how to release a lock from table that occured while running a stored procedure.

    Thanks :)
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    It should release automatically after the code is run. But if it's not, then you need to show us the code. We can't help if we don't know what you're doing.

    Comment

    • ck9663
      Recognized Expert Specialist
      • Jun 2007
      • 2878

      #3
      If you're stored proc is just reading the table, a NOLOCK hint should be fine. However, you should be careful as you might be accessing stale data.

      ~~ CK

      Comment

      Working...