View Single Post

   
  #6 (permalink)  
Old 03-01-2008, 03:46 PM
Erland Sommarskog
 
Posts: n/a
Default Re: deadlock and high cpu - chicken or the egg

zzzxtreme@gmail.com (zzzxtreme@gmail.com) writes:
> many been thru that
>
> read up more about WITH (NOLOCK) for "non-critical" SELECT Queries


That will save Diggla from the deadlocks, but it will not resolve the
real problem: that the queries are need of tuning. The CPU will not
be less hogged because you run with NOLOCK. OK, the deadlock detection
will not have to run, but that's the small part.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Reply With Quote