You are here: Re: Query queued « MsSQL Server « IT news, forums, messages
Re: Query queued

Posted by Erland Sommarskog on 04/04/07 22:01

DzU (claudio@scartozzetto.it) writes:
> Yes, I run the query in two different session. It seems that the second
> wait for the first and then start running.

And the first window returns in 20 seconds, and the second 20 seconds later?

Unless you are using some XLOCK hints, I would rather suspect the network
communication. Or are you running these queries on the local server? What
happens if you run the two queries from two different clients.

On thing you could try is from a third window run sp_who2, and study the two
processes. I would expect both to consume CPU and physical IO.


--
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

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