You are here: Re: Deadlocks and Parallel Query Processing « MsSQL Server « IT news, forums, messages
Re: Deadlocks and Parallel Query Processing

Posted by Erland Sommarskog on 12/09/05 21:46

Mark D Powell (Mark.Powell@eds.com) writes:
> Looking at the query I noticed that the query does not have an
> available index and Query Analyzer shows that the full table scan is
> being done in parallel.
>
> My question: Does SQL Server change or modify its locking rules when
> queries are converted to be ran using parallel processing? If so, do
> you have a reference?

No. I would guess that what happens that both grab a table lock to
scan the table. When they found the row they are looking for, they
try to get an exclusive lock on that row, which they can't because the
other has a shared lock on the table.

> I have suggested adding an index to support the query.

That sounds like an excellent idea.


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

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация