Reply to Re: with nolock problem

Your name:

Reply:


Posted by Erland Sommarskog on 02/18/06 00:56

Rycho (sercik@interia.pl) writes:
> Is there a way to catch every select comming to sql and change it to
> select with nolock?
> or how to make database READ UNCOMMITTED permanent?
> any ideas?

If there are no updates in the database, you can set it to READONLY, to
avoid the overhead of locking. But apart from that, there is no option to
do this on database level.

However, the application could issue SET TRANSACTION ISOLATION LEVEL
READ UNCOMMITED when it connects.

But I would definitely think twice before I took such a step. If you
have issues with blocking, maybe you should rather review indexing
than resorting to NOLOCK.



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

[Back to original 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

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