Re: blocking caused from SQL with (nolock) hint

From: Russell Fields (RussellFields_at_NoMailPlease.Com)
Date: 12/07/04


Date: Tue, 7 Dec 2004 15:17:47 -0500

Jay,

No more information (environment, SQL code, etc) than the question, means
this question is hard to answer.

(1) If your SQL is doing an update, then (of course) it will lock the
resources being updated.

(2) I have also seen a repeated instance of an older version of Access
causing a lock (a SCH-M lock) even though it had no rights to make any
schema change.

Post some more details if you have them.

RLF
"Jay P" <Jay P@discussions.microsoft.com> wrote in message
news:C20A1880-D3EC-498E-B6E1-93F3D79FCA87@microsoft.com...
> I am seeing blocking in a database that is caused by a SQL statement that
> joins two tables with (nolock) hints. How is that possible? I thought
> nolock would perform a dirty read and would not block readers. Is that
not
> the case?
>
> Thanks,
> Jay



Relevant Pages

  • Re: Rowlock v. optimistic concurrency
    ... A report fetches a lot of rows using the "WITH " syntax (the ... Note that lock timeouts are by default off in SQL Server. ... NOLOCK has nothing to do with optimistic concurrency. ...
    (comp.databases.ms-sqlserver)
  • Re: controlling lock order in transactions
    ... > and the trigger issued a rollback your commit or rollback would error. ... > Andrew J. Kelly SQL MVP ... >> taken) for the duration of the transaction. ... >> find in the clients sp that could be causing the dead lock is the join on ...
    (microsoft.public.sqlserver.programming)
  • Re: Pass-Through Query w/o Record Locking
    ... > Found some documentation on the Progress web site that addresses an SQL ... >> Can you setup a nightly job writes your needed data to a 'warehouse'(OLTP ... >>> looking for but am running into record lock problems. ... >>> modifying. ...
    (microsoft.public.access.queries)
  • Re: Locking pages in memory
    ... the account SQL runs under) the permission to lock pages in memory. ... Server Standard, Enterprise, and Developer editions: Required for SQL Server ...
    (microsoft.public.sqlserver.setup)
  • Re: controlling lock order in transactions
    ... Andrew J. Kelly SQL MVP ... > ROLLBACK TRANSACTION; ... > find in the clients sp that could be causing the dead lock is the join on ...
    (microsoft.public.sqlserver.programming)