<?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 &#8211; Truncate and Delete</title>
	<atom:link href="http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/feed/" rel="self" type="application/rss+xml" />
	<link>http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/</link>
	<description>feel the passion of technologies here!</description>
	<lastBuildDate>Fri, 06 Nov 2009 20:05:45 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Preethi</title>
		<link>http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-719</link>
		<dc:creator>Preethi</dc:creator>
		<pubDate>Thu, 19 Feb 2009 04:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-719</guid>
		<description>Fentastic! I found the absolute differences bet&#039; the TRUNCATE and DELETE commands. No one author provided such a correct answer for this question. Its very useful for the beginners. Thank you very much!</description>
		<content:encoded><![CDATA[<p>Fentastic! I found the absolute differences bet&#8217; the TRUNCATE and DELETE commands. No one author provided such a correct answer for this question. Its very useful for the beginners. Thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trushar</title>
		<link>http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-711</link>
		<dc:creator>Trushar</dc:creator>
		<pubDate>Fri, 23 Jan 2009 16:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-711</guid>
		<description>Hi Prashant

Nice explanation. But hope you can answer couple of questions I have on this.

Truncate does not delete data. Truncate just deallocates pages and stores this information in log file. 

1) If data is not deleted then does that mean that data still 
    exist somewhere?

2) In truncate, if data is not deleted and only pages gets 
    deallocated(information of which is stored in log file), 
    then why is it that we cannot use rollback to reallocate 
    these pages?</description>
		<content:encoded><![CDATA[<p>Hi Prashant</p>
<p>Nice explanation. But hope you can answer couple of questions I have on this.</p>
<p>Truncate does not delete data. Truncate just deallocates pages and stores this information in log file. </p>
<p>1) If data is not deleted then does that mean that data still<br />
    exist somewhere?</p>
<p>2) In truncate, if data is not deleted and only pages gets<br />
    deallocated(information of which is stored in log file),<br />
    then why is it that we cannot use rollback to reallocate<br />
    these pages?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: using truncate table &#124; keyongtech</title>
		<link>http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-707</link>
		<dc:creator>using truncate table &#124; keyongtech</dc:creator>
		<pubDate>Sun, 18 Jan 2009 16:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-707</guid>
		<description>[...] back the transaction? &gt; &gt; truncate is *minimaly* logged, that doesn&#039;t mean it isn&#039;t :-)  http://techahead.wordpress.com/2007/...te-and-delete/                                 &#171; SQL Server Management Studio &#124; Select Distinct with a twist [...]</description>
		<content:encoded><![CDATA[<p>[...] back the transaction? &gt; &gt; truncate is *minimaly* logged, that doesn&#8217;t mean it isn&#8217;t <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   <a href="http://techahead.wordpress.com/2007/...te-and-delete/" rel="nofollow">http://techahead.wordpress.com/2007/&#8230;te-and-delete/</a>                                 &laquo; SQL Server Management Studio | Select Distinct with a twist [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramu</title>
		<link>http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-701</link>
		<dc:creator>ramu</dc:creator>
		<pubDate>Tue, 13 Jan 2009 16:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-701</guid>
		<description>Very useful indeeeeeedddddddd.............</description>
		<content:encoded><![CDATA[<p>Very useful indeeeeeedddddddd&#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gops</title>
		<link>http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-610</link>
		<dc:creator>Gops</dc:creator>
		<pubDate>Wed, 13 Aug 2008 06:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-610</guid>
		<description>Hi RAMESH M

Yes you can. As explained in above article.</description>
		<content:encoded><![CDATA[<p>Hi RAMESH M</p>
<p>Yes you can. As explained in above article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gops</title>
		<link>http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-609</link>
		<dc:creator>Gops</dc:creator>
		<pubDate>Wed, 13 Aug 2008 06:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-609</guid>
		<description>Hi Prashant,

In case I am not worried about FK constraints / triggers, then is there any difference between TRUNCATE and DELETE in terms of performance of following step (INSERT). For this step, I understand TRUNCATE will be faster but If I want to reload (INSERT) almost the same number of records, will my INSERT be faster and compensate for time I lost in DELETE (compared to TRUNCATE)? Any scenario where DELETE ALL will be preferred over TRUNCATE, other than logging or ones you covered above?
Thanks for your article anyways.</description>
		<content:encoded><![CDATA[<p>Hi Prashant,</p>
<p>In case I am not worried about FK constraints / triggers, then is there any difference between TRUNCATE and DELETE in terms of performance of following step (INSERT). For this step, I understand TRUNCATE will be faster but If I want to reload (INSERT) almost the same number of records, will my INSERT be faster and compensate for time I lost in DELETE (compared to TRUNCATE)? Any scenario where DELETE ALL will be preferred over TRUNCATE, other than logging or ones you covered above?<br />
Thanks for your article anyways.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RAMESH M</title>
		<link>http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-596</link>
		<dc:creator>RAMESH M</dc:creator>
		<pubDate>Mon, 28 Jul 2008 13:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-596</guid>
		<description>Can we Rollback the data after using Truncate statement...


Reply pls....</description>
		<content:encoded><![CDATA[<p>Can we Rollback the data after using Truncate statement&#8230;</p>
<p>Reply pls&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RAMESH M</title>
		<link>http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-595</link>
		<dc:creator>RAMESH M</dc:creator>
		<pubDate>Mon, 28 Jul 2008 13:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-595</guid>
		<description>Its very useful article....

Many many Thanks....</description>
		<content:encoded><![CDATA[<p>Its very useful article&#8230;.</p>
<p>Many many Thanks&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff M</title>
		<link>http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-587</link>
		<dc:creator>Jeff M</dc:creator>
		<pubDate>Wed, 16 Jul 2008 16:34:02 +0000</pubDate>
		<guid isPermaLink="false">http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-587</guid>
		<description>Any idea why a truncate on a table would throw a foreign key constraint error but a delete of all rows on the same table works fine?  I verified that all FK tables had no rows in them when I truncated.  Is it possible you cannot truncate a table that has FK&#039;s?</description>
		<content:encoded><![CDATA[<p>Any idea why a truncate on a table would throw a foreign key constraint error but a delete of all rows on the same table works fine?  I verified that all FK tables had no rows in them when I truncated.  Is it possible you cannot truncate a table that has FK&#8217;s?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sushil Khajuria</title>
		<link>http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-573</link>
		<dc:creator>Sushil Khajuria</dc:creator>
		<pubDate>Wed, 02 Jul 2008 05:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://techahead.wordpress.com/2007/10/10/sql-truncate-and-delete/#comment-573</guid>
		<description>Hi,

Thanks for such a detailed article about differences b/w DELETE and TRUNCATE. I had searched this many times on net but the explaination given here is far more better, useful and best part is written in such a way that even a layman can understand with just one reading.

Good Work Prashant........</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for such a detailed article about differences b/w DELETE and TRUNCATE. I had searched this many times on net but the explaination given here is far more better, useful and best part is written in such a way that even a layman can understand with just one reading.</p>
<p>Good Work Prashant&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
