<?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; Difference Between ROLLBACK IMMEDIATE and WITH NO_WAIT during ALTER DATABASE</title>
	<atom:link href="http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Mon, 13 Feb 2012 15:11:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 19 of 31 Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/#comment-149238</link>
		<dc:creator><![CDATA[SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 19 of 31 Journey to SQLAuthority]]></dc:creator>
		<pubDate>Tue, 19 Jul 2011 01:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=8233#comment-149238</guid>
		<description><![CDATA[[...] Specifies that if the requested database state or option change cannot complete immediately without waiting for transactions to commit or roll back on their own, then the request will fail.(Read more here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Specifies that if the requested database state or option change cannot complete immediately without waiting for transactions to commit or roll back on their own, then the request will fail.(Read more here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramakrishna</title>
		<link>http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/#comment-118777</link>
		<dc:creator><![CDATA[ramakrishna]]></dc:creator>
		<pubDate>Wed, 16 Feb 2011 04:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=8233#comment-118777</guid>
		<description><![CDATA[hi pinaldave sir,
At wich situation we use this statements
 ROLLBACK IMMEDIATE and WITH NO_WAIT during ALTER DATABASE
mY mailid [email removed]
am waiting for ur reply
 Thanks and regards
Ramakrishna]]></description>
		<content:encoded><![CDATA[<p>hi pinaldave sir,<br />
At wich situation we use this statements<br />
 ROLLBACK IMMEDIATE and WITH NO_WAIT during ALTER DATABASE<br />
mY mailid [email removed]<br />
am waiting for ur reply<br />
 Thanks and regards<br />
Ramakrishna</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/#comment-78480</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 19:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=8233#comment-78480</guid>
		<description><![CDATA[Hello Vinod Sir,

This is great observation and I am fortunate that you are here to help me clear this doubt further.

Yes, 1 and 3 are same but in case of the 1st, it will wait for the transactions to complete. Many time, it waits for long time and times out. In case of 3, if Alter is not executed right away, it fails immediately.

Kind Regards,
Pinal]]></description>
		<content:encoded><![CDATA[<p>Hello Vinod Sir,</p>
<p>This is great observation and I am fortunate that you are here to help me clear this doubt further.</p>
<p>Yes, 1 and 3 are same but in case of the 1st, it will wait for the transactions to complete. Many time, it waits for long time and times out. In case of 3, if Alter is not executed right away, it fails immediately.</p>
<p>Kind Regards,<br />
Pinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinod</title>
		<link>http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/#comment-78450</link>
		<dc:creator><![CDATA[Vinod]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 13:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=8233#comment-78450</guid>
		<description><![CDATA[Books online says - 

NO_WAIT 

Specifies that if the requested database state or option change cannot complete immediately without waiting for transactions to commit or roll back on their own, the request will fail.



Pinal did you mean to say this ?

1. If you dont specify any option - Alter database will wait for transactions to complete and then execute

2. If you specify rollback- alter database, will rollback all transaction immediately and then effect the alter database changes

3. If you specify NO_WAIT, dont wait for transaction to complete, try executing my alter db statement, and let the alter fail for its specified exception. This wouldnt have been the case for the 1. one. it would have waited for the transact to complete and then the alter could succeed or fail based on the context of alter.]]></description>
		<content:encoded><![CDATA[<p>Books online says &#8211; </p>
<p>NO_WAIT </p>
<p>Specifies that if the requested database state or option change cannot complete immediately without waiting for transactions to commit or roll back on their own, the request will fail.</p>
<p>Pinal did you mean to say this ?</p>
<p>1. If you dont specify any option &#8211; Alter database will wait for transactions to complete and then execute</p>
<p>2. If you specify rollback- alter database, will rollback all transaction immediately and then effect the alter database changes</p>
<p>3. If you specify NO_WAIT, dont wait for transaction to complete, try executing my alter db statement, and let the alter fail for its specified exception. This wouldnt have been the case for the 1. one. it would have waited for the transact to complete and then the alter could succeed or fail based on the context of alter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/#comment-63202</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Thu, 18 Mar 2010 20:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=8233#comment-63202</guid>
		<description><![CDATA[Hello Jerry,

Welcome back.

I usually give some time for trans to rollback. So I usually use with rollback with sometime delay of 30 seconds. 

Kind Regards,
Pinal]]></description>
		<content:encoded><![CDATA[<p>Hello Jerry,</p>
<p>Welcome back.</p>
<p>I usually give some time for trans to rollback. So I usually use with rollback with sometime delay of 30 seconds. </p>
<p>Kind Regards,<br />
Pinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Hung</title>
		<link>http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/#comment-63200</link>
		<dc:creator><![CDATA[Jerry Hung]]></dc:creator>
		<pubDate>Thu, 18 Mar 2010 20:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=8233#comment-63200</guid>
		<description><![CDATA[Nice to be back here commenting

so Pinal, what&#039;s your recommendation method?

I almost always use WITH ROLLBACK IMMEDIATE since I don&#039;t want to wait for others :)

NO WAIT makes me wait on others by failing ;)]]></description>
		<content:encoded><![CDATA[<p>Nice to be back here commenting</p>
<p>so Pinal, what&#8217;s your recommendation method?</p>
<p>I almost always use WITH ROLLBACK IMMEDIATE since I don&#8217;t want to wait for others :)</p>
<p>NO WAIT makes me wait on others by failing ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramdas</title>
		<link>http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/#comment-63103</link>
		<dc:creator><![CDATA[Ramdas]]></dc:creator>
		<pubDate>Wed, 17 Mar 2010 15:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=8233#comment-63103</guid>
		<description><![CDATA[Thank you pinal for the clarification.]]></description>
		<content:encoded><![CDATA[<p>Thank you pinal for the clarification.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/#comment-63097</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Wed, 17 Mar 2010 13:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=8233#comment-63097</guid>
		<description><![CDATA[Hi Ramdas,

That is my understanding. If the transactions are not complete by the time No_wait is executed they error out.]]></description>
		<content:encoded><![CDATA[<p>Hi Ramdas,</p>
<p>That is my understanding. If the transactions are not complete by the time No_wait is executed they error out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramdas</title>
		<link>http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/#comment-63090</link>
		<dc:creator><![CDATA[Ramdas]]></dc:creator>
		<pubDate>Wed, 17 Mar 2010 13:18:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=8233#comment-63090</guid>
		<description><![CDATA[Hi Pinal,
Just to get this clear, in case of the NO_WAIT option, if there are incomple transactions in the database, then the NO_WAIT will error out?

Thank you]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
Just to get this clear, in case of the NO_WAIT option, if there are incomple transactions in the database, then the NO_WAIT will error out?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/#comment-63033</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Wed, 17 Mar 2010 03:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=8233#comment-63033</guid>
		<description><![CDATA[Thanks for note, Yes, Images needed to switch. 

Now the images are corrected.]]></description>
		<content:encoded><![CDATA[<p>Thanks for note, Yes, Images needed to switch. </p>
<p>Now the images are corrected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnjakubowski</title>
		<link>http://blog.sqlauthority.com/2010/03/17/sql-server-difference-between-rollback-immediate-and-with-no_wait-during-alter-database/#comment-63032</link>
		<dc:creator><![CDATA[johnjakubowski]]></dc:creator>
		<pubDate>Wed, 17 Mar 2010 03:02:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=8233#comment-63032</guid>
		<description><![CDATA[It looks like those images should be switched.]]></description>
		<content:encoded><![CDATA[<p>It looks like those images should be switched.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
