Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2003
    Location
    London, England
    Posts
    106

    Unanswered: The use of WITH (ROWLOCK)

    I'm using a cursor in a stored procedure to update quite alot of records in one of my tables, but I'm somewhat concerned that sql-server will issue a table-lock because the rows updated can be quite many at times. How can I force it to only lock one row at a time? I have never used WITH (ROWLOCK) before but I think this is what i need...can you guys give me any examples please?
    Frettmaestro
    "Real programmers don't document, if it was hard to write it should be hard to understand!"

  2. #2
    Join Date
    Aug 2002
    Location
    Scotland
    Posts
    1,578
    May refer to this link
    --Satya SKJ
    Microsoft SQL Server MVP
    [IMG]http://sqlserver-qa.net/google_bart.gif[/IMG]

Posting Permissions

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