You are here: Re: Update statement performance problem « MsSQL Server « IT news, forums, messages
Re: Update statement performance problem

Posted by Erland Sommarskog on 05/09/06 00:34

(p_bali@hotmail.com) writes:
> I have an UPDATE statement which runs very slow (about 1-2 minutes) in
> Web as well as in Query Analyzer. Very plain UPDATE statement; uses
> indexes, etc. I though the reason might be the table being unorganized
> because of the row expansions due to updating an existing column value
> with a larger value. Therefore, I ran a maintanenance plan which
> reorganizes data and rebuilds indexes. But, it seems that there is no
> improvement.
>
> Any thought or advise will be greatly appreciated.

Please include:

o The actual UPDATE statement.
o CREATE TABLE and CREATE INDEX statements for the involved tables.
o Indication of query sizes.
o The output when running the query with SET STATISTICS PROFILE ON.

From the information you have given, only wild guesses are possible.

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

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