<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Benchmark IT Consulting &#187; hint</title>
	<atom:link href="http://benchmarkitconsulting.com/tag/hint/feed/" rel="self" type="application/rss+xml" />
	<link>http://benchmarkitconsulting.com</link>
	<description>My Thoughts on SQL Server and anything else I can think of...</description>
	<lastBuildDate>Tue, 07 Sep 2010 19:46:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>NOLOCK on everything?  NOTHANKS!!</title>
		<link>http://benchmarkitconsulting.com/colin-stasiuk/2009/06/18/nolock-on-everything-nothanks/</link>
		<comments>http://benchmarkitconsulting.com/colin-stasiuk/2009/06/18/nolock-on-everything-nothanks/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 14:25:57 +0000</pubDate>
		<dc:creator>Colin Stasiuk</dc:creator>
				<category><![CDATA[Benchmark IT Consulting]]></category>
		<category><![CDATA[Colin Stasiuk]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[hint]]></category>
		<category><![CDATA[NOLOCK]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://benchmarkitconsulting.com/?p=765</guid>
		<description><![CDATA[A fellow tweeter posted the question today on Twitter so I thought I would do a quick blurb about NOLOCK which might help serve as a reference point: &#8220;So how do you convince a team of developers that putting NOLOCK on every single query isn&#8217;t a recommended practice?&#8221; He&#8217;s probably facing the questions/comments like: &#8220;All [...]]]></description>
			<content:encoded><![CDATA[<p>A fellow tweeter posted the question today on Twitter so I thought I would do a quick blurb about NOLOCK which might help serve as a reference point:</p>
<p>&#8220;So how do you convince a team of developers that putting NOLOCK on every single query isn&#8217;t a recommended practice?&#8221;</p>
<p>He&#8217;s probably facing the questions/comments like:</p>
<p>&#8220;All NOLOCK does is reads uncommitted rows&#8221;</p>
<p>&#8220;NOLOCK helps contention on tables that are being updated&#8221;</p>
<p>I started &#8220;googling&#8221; around a bit and found several great articles talking about this subject:</p>
<p><a href="http://blogs.msdn.com/davidlean/archive/2009/04/06/sql-server-nolock-hint-other-poor-ideas.aspx" target="_blank">Dave Does Data &#8211; NOLOCK Hint and Other Poor Ideas</a></p>
<p>Dave also links to these articles as well:</p>
<p><a href="http://blogs.msdn.com/sqlcat/archive/2007/02/01/previously-committed-rows-might-be-missed-if-nolock-hint-is-used.aspx" target="_blank">SQLCAT &#8211; Previously Committed Rows Might Be Missed NOLOCK</a></p>
<p><a href="http://sqlblogcasts.com/blogs/tonyrogerson/archive/2006/11/10/1280.aspx" target="_blank">Tony Rogerson &#8211; Consistency Problem with NOLOCK</a></p>
<p><a href="http://www.sqlmag.com/Articles/Index.cfm?ArticleID=92888&amp;DisplayTab=Article" target="_blank">Itzik Ben-Gan &#8211; Allocation Order Scans with NOLOCK</a></p>
<p>A great quote I found as well:</p>
<p>&#8220;NOLOCK is like a chainsaw, it&#8217;s very useful but also dangerous.  I don&#8217;t think I would put it on any list of standards or best practices if those recommendations would be forced on people who don&#8217;t understand what they&#8217;re doing.&#8221; &#8211; Scott</p>
<p>Hopefully these links will give enough information for our DBA friend looking to defend himself vs them nasty developer types <img src='http://benchmarkitconsulting.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  hehehe</p>
<p>A good rule of thumb (that I like to use anyways) for any index hint is:</p>
<p>Only use an index hint when you can <strong><span style="text-decoration: underline;">PROVE</span></strong> that there is no other way to solve your problem.</p>
<p>Enjoy!!</p>
<p><span><a href="http://benchmarkitconsulting.com" target="_blank"><img class="alignnone size-full wp-image-402" title="benchmark_sm" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/02/benchmark_sm.jpg" alt="" width="157" height="74" /></a><a href="http://sqlserverpedia.com/wiki/Editors#Colin_Stasiuk" target="_blank"><img src="http://sqlserverpedia.com/badges/SQLServerPedia_Badge_Blogger.jpg" alt="" width="120" height="60" /> </a></span></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=NOLOCK+on+everything%3F++NOTHANKS%21%21+http://tinyurl.com/lo7rah" title="Post to Twitter"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/06/18/nolock-on-everything-nothanks/&amp;title=NOLOCK+on+everything%3F++NOTHANKS%21%21" title="Post to Delicious"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-delicious-big4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/06/18/nolock-on-everything-nothanks/&amp;title=NOLOCK+on+everything%3F++NOTHANKS%21%21" title="Post to Digg"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-digg-big4.png" alt="Post to Digg" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/06/18/nolock-on-everything-nothanks/&amp;title=NOLOCK+on+everything%3F++NOTHANKS%21%21" title="Post to StumbleUpon"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-su-big4.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://benchmarkitconsulting.com/colin-stasiuk/2009/06/18/nolock-on-everything-nothanks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
