<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Applying NOLOCK Hint at Query Level &#8211; NOLOCK for whole Transaction</title>
	<atom:link href="http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 23 May 2013 14:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #025 &#124; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-459803</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #025 &#124; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 20 Apr 2013 01:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-459803</guid>
		<description><![CDATA[[...] Applying NOLOCK Hint at Query Level – NOLOCK for whole Transaction How do I apply NOLOCK hint to my whole query. I know that I can use NOLOCK at every table level but I have many tables in my query and I want to apply the same to all the tables. Read the answer to the question in this blog post. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Applying NOLOCK Hint at Query Level – NOLOCK for whole Transaction How do I apply NOLOCK hint to my whole query. I know that I can use NOLOCK at every table level but I have many tables in my query and I want to apply the same to all the tables. Read the answer to the question in this blog post. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fardin</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-351710</link>
		<dc:creator><![CDATA[Fardin]]></dc:creator>
		<pubDate>Fri, 21 Sep 2012 07:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-351710</guid>
		<description><![CDATA[I have a process which pulls the data and send SMS. My concern is, if i start inserting the data in the Table from where i read and send sms and the same time i run the application which send sms, it should not read the inserted data until its committed. But in the mean time it should fetch all the previously commited transaction. How can i achieve the save.

BEGIN TRAN A
INSERT INTO test_name VALUES (&#039;ABC&#039;)


SELECT * FROM test_name  (Should return me data other then &#039;ABC&#039; as its not committed yet.]]></description>
		<content:encoded><![CDATA[<p>I have a process which pulls the data and send SMS. My concern is, if i start inserting the data in the Table from where i read and send sms and the same time i run the application which send sms, it should not read the inserted data until its committed. But in the mean time it should fetch all the previously commited transaction. How can i achieve the save.</p>
<p>BEGIN TRAN A<br />
INSERT INTO test_name VALUES (&#8216;ABC&#8217;)</p>
<p>SELECT * FROM test_name  (Should return me data other then &#8216;ABC&#8217; as its not committed yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shawn</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-279964</link>
		<dc:creator><![CDATA[shawn]]></dc:creator>
		<pubDate>Fri, 27 Apr 2012 02:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-279964</guid>
		<description><![CDATA[Thanks! you are a life savor, spent a while trying to figure out how to dynamically add to a generated nhibernate query.]]></description>
		<content:encoded><![CDATA[<p>Thanks! you are a life savor, spent a while trying to figure out how to dynamically add to a generated nhibernate query.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Locking, Blocking and Deadlock &#8211; Quiz &#8211; Puzzle &#8211; 9 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-234543</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Locking, Blocking and Deadlock &#8211; Quiz &#8211; Puzzle &#8211; 9 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Tue, 10 Jan 2012 01:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-234543</guid>
		<description><![CDATA[[...] SQL Server Interview Questions and Answers ISBN: 1466405643 Page#56-57 Simple Example of Snapshot Isolation – Reduce the Blocking Transactions TRANSACTION, DML and Schema Locks Introduction to Live Lock – What is Live Lock? Applying NOLOCK Hint at Query Level – NOLOCK for whole Transaction [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL Server Interview Questions and Answers ISBN: 1466405643 Page#56-57 Simple Example of Snapshot Isolation – Reduce the Blocking Transactions TRANSACTION, DML and Schema Locks Introduction to Live Lock – What is Live Lock? Applying NOLOCK Hint at Query Level – NOLOCK for whole Transaction [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Locking and Blocking &#8211; Important Aspect of Database and Effect on Performance &#8211; Quiz &#8211; Puzzle &#8211; 5 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-232124</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Locking and Blocking &#8211; Important Aspect of Database and Effect on Performance &#8211; Quiz &#8211; Puzzle &#8211; 5 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Fri, 06 Jan 2012 01:31:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-232124</guid>
		<description><![CDATA[[...] SQL Server Interview Questions and Answers ISBN: 1466405643 Page#41-43 Simple Example of Snapshot Isolation – Reduce the Blocking Transactions TRANSACTION, DML and Schema Locks Introduction to Live Lock – What is Live Lock? Applying NOLOCK Hint at Query Level – NOLOCK for whole Transaction [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL Server Interview Questions and Answers ISBN: 1466405643 Page#41-43 Simple Example of Snapshot Isolation – Reduce the Blocking Transactions TRANSACTION, DML and Schema Locks Introduction to Live Lock – What is Live Lock? Applying NOLOCK Hint at Query Level – NOLOCK for whole Transaction [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Importance of ANSI ISOLATION Levels in SQL Server Database &#8211; Quiz &#8211; Puzzle &#8211; 1 of 31 &#171; SQL Server Journey with SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-229784</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Importance of ANSI ISOLATION Levels in SQL Server Database &#8211; Quiz &#8211; Puzzle &#8211; 1 of 31 &#171; SQL Server Journey with SQLAuthority]]></dc:creator>
		<pubDate>Mon, 02 Jan 2012 01:31:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-229784</guid>
		<description><![CDATA[[...] and their Relationship with Isolation Level Check the Isolation Level with DBCC useroptions Applying NOLOCK Hint at Query Level – NOLOCK for whole Transaction Simple Example of Snapshot Isolation [...]]]></description>
		<content:encoded><![CDATA[<p>[...] and their Relationship with Isolation Level Check the Isolation Level with DBCC useroptions Applying NOLOCK Hint at Query Level – NOLOCK for whole Transaction Simple Example of Snapshot Isolation [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-130560</link>
		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Fri, 22 Apr 2011 17:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-130560</guid>
		<description><![CDATA[If you have a long running query, odds are blocking side effect will be observed with NOLOCK. While bypassing locking might sound tempting, sometimes deadlock might be a better alternative]]></description>
		<content:encoded><![CDATA[<p>If you have a long running query, odds are blocking side effect will be observed with NOLOCK. While bypassing locking might sound tempting, sometimes deadlock might be a better alternative</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-129932</link>
		<dc:creator><![CDATA[Craig]]></dc:creator>
		<pubDate>Tue, 19 Apr 2011 07:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-129932</guid>
		<description><![CDATA[Yes, I&#039;d be interested to know if there is any impact on a production database when setting NOLOCK isolation level at the transaction level?

If not, could you clarify the need to change it at the end of the query?

Thanks.]]></description>
		<content:encoded><![CDATA[<p>Yes, I&#8217;d be interested to know if there is any impact on a production database when setting NOLOCK isolation level at the transaction level?</p>
<p>If not, could you clarify the need to change it at the end of the query?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramdas</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-129558</link>
		<dc:creator><![CDATA[Ramdas]]></dc:creator>
		<pubDate>Mon, 18 Apr 2011 14:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-129558</guid>
		<description><![CDATA[Hi Pinal,
Most of the situtations where i have used NOLOCK is at the table level on reporting databases (part of Datawarehouse), very rarely use it in OLTP.  Interesting viewpoint on using NOLOCK at transaction level.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
Most of the situtations where i have used NOLOCK is at the table level on reporting databases (part of Datawarehouse), very rarely use it in OLTP.  Interesting viewpoint on using NOLOCK at transaction level.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-129493</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 18 Apr 2011 10:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-129493</guid>
		<description><![CDATA[Yes if the tables are locked by that process and they are used in other places]]></description>
		<content:encoded><![CDATA[<p>Yes if the tables are locked by that process and they are used in other places</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deepraj singh</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-129377</link>
		<dc:creator><![CDATA[deepraj singh]]></dc:creator>
		<pubDate>Sun, 17 Apr 2011 17:38:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-129377</guid>
		<description><![CDATA[great penal .very basic step]]></description>
		<content:encoded><![CDATA[<p>great penal .very basic step</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taha Amin</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-129336</link>
		<dc:creator><![CDATA[Taha Amin]]></dc:creator>
		<pubDate>Sun, 17 Apr 2011 11:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-129336</guid>
		<description><![CDATA[no it will not impact the other processes]]></description>
		<content:encoded><![CDATA[<p>no it will not impact the other processes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-129335</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Sun, 17 Apr 2011 11:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-129335</guid>
		<description><![CDATA[yeah I know that - but the point was to have it for whole transaction and not at individual table level.]]></description>
		<content:encoded><![CDATA[<p>yeah I know that &#8211; but the point was to have it for whole transaction and not at individual table level.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sai Pavan Viswanath</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-129329</link>
		<dc:creator><![CDATA[Sai Pavan Viswanath]]></dc:creator>
		<pubDate>Sun, 17 Apr 2011 10:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-129329</guid>
		<description><![CDATA[I have similar kind of requirement but I have to query production databases to run some scripts. Is it safe to work with transaction isolation levels on production databases.

Thanks,
Sai Pavan Viswanath]]></description>
		<content:encoded><![CDATA[<p>I have similar kind of requirement but I have to query production databases to run some scripts. Is it safe to work with transaction isolation levels on production databases.</p>
<p>Thanks,<br />
Sai Pavan Viswanath</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taha Amin</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-129325</link>
		<dc:creator><![CDATA[Taha Amin]]></dc:creator>
		<pubDate>Sun, 17 Apr 2011 09:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-129325</guid>
		<description><![CDATA[@Prawin, no it will not impact the other processes]]></description>
		<content:encoded><![CDATA[<p>@Prawin, no it will not impact the other processes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taha Amin</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-129324</link>
		<dc:creator><![CDATA[Taha Amin]]></dc:creator>
		<pubDate>Sun, 17 Apr 2011 09:36:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-129324</guid>
		<description><![CDATA[@Pinal Dave you can use &#039;nolock&#039; like this 
SELECT *
FROM AdventureWorks.Sales.SalesOrderDetail as sod with(nolock)
INNER JOIN AdventureWorks.Sales.SalesOrderHeader as soh with(nolock)
 ON sod.SalesOrderID = soh.SalesOrderID
ORDER BY sod.ModifiedDate
but it has two drawbacks
1-another tansaction is rolled back while your query still running you will get this exception:
Could not continue scan with NOLOCK due to data movement.
2-another tansaction is rolled back after your query had ended
then you have dirty data

i recomment to use &#039;readpast&#039; as the database engine not consider any locked rows ordata pages when returning results.]]></description>
		<content:encoded><![CDATA[<p>@Pinal Dave you can use &#8216;nolock&#8217; like this<br />
SELECT *<br />
FROM AdventureWorks.Sales.SalesOrderDetail as sod with(nolock)<br />
INNER JOIN AdventureWorks.Sales.SalesOrderHeader as soh with(nolock)<br />
 ON sod.SalesOrderID = soh.SalesOrderID<br />
ORDER BY sod.ModifiedDate<br />
but it has two drawbacks<br />
1-another tansaction is rolled back while your query still running you will get this exception:<br />
Could not continue scan with NOLOCK due to data movement.<br />
2-another tansaction is rolled back after your query had ended<br />
then you have dirty data</p>
<p>i recomment to use &#8216;readpast&#8217; as the database engine not consider any locked rows ordata pages when returning results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prawin</title>
		<link>http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/#comment-129306</link>
		<dc:creator><![CDATA[prawin]]></dc:creator>
		<pubDate>Sun, 17 Apr 2011 07:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12645#comment-129306</guid>
		<description><![CDATA[Lets say the query takes a lot of time to execute say 1 hr..then there would be impact in other places right??..
So, What say?

Thanks,
Prawin]]></description>
		<content:encoded><![CDATA[<p>Lets say the query takes a lot of time to execute say 1 hr..then there would be impact in other places right??..<br />
So, What say?</p>
<p>Thanks,<br />
Prawin</p>
]]></content:encoded>
	</item>
</channel>
</rss>
