<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Mike Diehl's WebLog - All Comments</title><link>http://weblogs.asp.net/miked/default.aspx</link><description>Much aBlog about nothing...</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>progremmer | Andreperdana&amp;#039;s Blog</title><link>http://weblogs.asp.net/miked/archive/2006/10/13/_2200_Developers_2200_-and-_2200_Programmers_2200_.aspx#7599617</link><pubDate>Wed, 25 Aug 2010 06:22:54 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7599617</guid><dc:creator>progremmer | Andreperdana's Blog</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;progremmer | Andreperdana&amp;amp;#039;s Blog&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7599617" width="1" height="1"&gt;</description></item><item><title>re: Imaginet is hiring</title><link>http://weblogs.asp.net/miked/archive/2010/06/01/imaginet-is-hiring.aspx#7516341</link><pubDate>Thu, 03 Jun 2010 13:12:23 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7516341</guid><dc:creator>Paresh Prajapati</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am interested for Database Admin &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7516341" width="1" height="1"&gt;</description></item><item><title>re: Imaginet is hiring</title><link>http://weblogs.asp.net/miked/archive/2010/06/01/imaginet-is-hiring.aspx#7514705</link><pubDate>Wed, 02 Jun 2010 07:04:50 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7514705</guid><dc:creator>Wesley</dc:creator><description>&lt;p&gt;And the URL to the company site is?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7514705" width="1" height="1"&gt;</description></item><item><title>re: SQL Table stored as a Heap - the dangers within</title><link>http://weblogs.asp.net/miked/archive/2010/04/30/sql-table-stored-as-a-heap-the-dangers-within.aspx#7468496</link><pubDate>Mon, 03 May 2010 13:16:09 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7468496</guid><dc:creator>jonmcrawford</dc:creator><description>&lt;p&gt;Darren, see Paul Randall's blog, myth 19/30 from the month of April, &lt;a rel="nofollow" target="_new" href="http://www.sqlskills.com/BLOGS/PAUL/post/A-SQL-Server-DBA-myth-a-day-"&gt;www.sqlskills.com/.../A-SQL-Server-DBA-myth-a-day-&lt;/a&gt;(1930)-TRUNCATE-TABLE-is-non-logged.aspx&lt;/p&gt;
&lt;p&gt;Truncate is indeed logged, it just doesn't have to log each individual record.&lt;/p&gt;
&lt;p&gt;-Jon&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7468496" width="1" height="1"&gt;</description></item><item><title>re: SQL Table stored as a Heap - the dangers within</title><link>http://weblogs.asp.net/miked/archive/2010/04/30/sql-table-stored-as-a-heap-the-dangers-within.aspx#7468467</link><pubDate>Mon, 03 May 2010 12:41:46 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7468467</guid><dc:creator>Peter</dc:creator><description>&lt;p&gt;To comment on the comments on truncate (all are false).&lt;/p&gt;
&lt;p&gt;According to books online:&lt;/p&gt;
&lt;p&gt;* Less transaction log space is used.&lt;/p&gt;
&lt;p&gt;The DELETE statement removes rows one at a time and records an entry in the transaction log for each deleted row. TRUNCATE TABLE removes the data by deallocating the data pages used to store the table data and records only the page deallocations in the transaction log. &lt;/p&gt;
&lt;p&gt;* Fewer locks are typically used.&lt;/p&gt;
&lt;p&gt;When the DELETE statement is executed using a row lock, each row in the table is locked for deletion. TRUNCATE TABLE always locks the table and page but not each row.&lt;/p&gt;
&lt;p&gt;* Without exception, zero pages are left in the table&lt;/p&gt;
&lt;p&gt;After a DELETE statement is executed, the table can still contain empty pages. For example, empty pages in a heap cannot be deallocated without at least an exclusive (LCK_M_X) table lock. If the delete operation does not use a table lock, the table (heap) will contain many empty pages. For indexes, the delete operation can leave empty pages behind, although these pages will be deallocated quickly by a background cleanup process.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7468467" width="1" height="1"&gt;</description></item><item><title>re: SQL Table stored as a Heap - the dangers within</title><link>http://weblogs.asp.net/miked/archive/2010/04/30/sql-table-stored-as-a-heap-the-dangers-within.aspx#7467483</link><pubDate>Sun, 02 May 2010 05:56:53 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7467483</guid><dc:creator>Danijel</dc:creator><description>&lt;p&gt;As far as I know, TRUNCATE TABLE statement actually drops the whole table altoghter, and re-creates it anew. &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7467483" width="1" height="1"&gt;</description></item><item><title>Twitter Trackbacks for                 SQL Table stored as a Heap - the dangers within - Mike Diehl's WebLog         [asp.net]        on Topsy.com</title><link>http://weblogs.asp.net/miked/archive/2010/04/30/sql-table-stored-as-a-heap-the-dangers-within.aspx#7466391</link><pubDate>Fri, 30 Apr 2010 19:35:27 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7466391</guid><dc:creator>Twitter Trackbacks for                 SQL Table stored as a Heap - the dangers within - Mike Diehl's WebLog         [asp.net]        on Topsy.com</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Twitter Trackbacks for &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SQL Table stored as a Heap - the dangers within - Mike Diehl's WebLog &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [asp.net] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;on Topsy.com&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7466391" width="1" height="1"&gt;</description></item><item><title>re: SQL Table stored as a Heap - the dangers within</title><link>http://weblogs.asp.net/miked/archive/2010/04/30/sql-table-stored-as-a-heap-the-dangers-within.aspx#7466387</link><pubDate>Fri, 30 Apr 2010 19:32:23 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7466387</guid><dc:creator>Darren Kopp</dc:creator><description>&lt;p&gt;Truncate skips the transaction log, so delete was most likely reading the table info to put info into transaction log, which is why it was taking so long.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7466387" width="1" height="1"&gt;</description></item><item><title>re: SQL Table stored as a Heap - the dangers within</title><link>http://weblogs.asp.net/miked/archive/2010/04/30/sql-table-stored-as-a-heap-the-dangers-within.aspx#7466352</link><pubDate>Fri, 30 Apr 2010 19:05:29 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7466352</guid><dc:creator>shanmugamm</dc:creator><description>&lt;p&gt;Great&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7466352" width="1" height="1"&gt;</description></item><item><title>evastonline.com  &amp;raquo; Blog Archive   &amp;raquo; Computer programer</title><link>http://weblogs.asp.net/miked/archive/2006/10/13/_2200_Developers_2200_-and-_2200_Programmers_2200_.aspx#7170287</link><pubDate>Sat, 15 Aug 2009 16:29:58 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7170287</guid><dc:creator>evastonline.com  » Blog Archive   » Computer programer</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;evastonline.com &amp;nbsp;&amp;amp;raquo; Blog Archive &amp;nbsp; &amp;amp;raquo; Computer programer&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7170287" width="1" height="1"&gt;</description></item></channel></rss>