﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Unknown Unknown / Article Discussions / Article Discussions by Author  / Truncate Table / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 19:24:52 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Truncate Table</title><link>http://www.sqlservercentral.com/Forums/Topic414168-34-1.aspx</link><description>gr8 question with the answer in the title itself :-P</description><pubDate>Wed, 28 Nov 2012 00:29:12 GMT</pubDate><dc:creator>kapil_kk</dc:creator></item><item><title>RE: Truncate Table</title><link>http://www.sqlservercentral.com/Forums/Topic414168-34-1.aspx</link><description>Hmm - dropping the table is the fastest way as it logs the least and doesn't take any locks, compared to truncate table. I think that was a bad question as the answer they wanted was truncate - drop shouldn't have been an option.</description><pubDate>Wed, 02 Apr 2008 05:26:36 GMT</pubDate><dc:creator>Paul Randal</dc:creator></item><item><title>RE: Truncate Table</title><link>http://www.sqlservercentral.com/Forums/Topic414168-34-1.aspx</link><description>[quote][b]Nicholas Cain (10/30/2007)[/b][hr]I do not believe that the answer is correct.The question was the fastest way to delete every row in a table.Delete and truncate are not the same thing.Should the question have read "to remove all rows from a table" then I would agree with the truncate statement.This does not take into account things like identity values which would continue from the most recent number rather than completely reseed post truncate.[/quote]The question doesn't take that into account, therefore nor should your answer.  DELETE and TRUNCATE do indeed work differently, but both have the effect of deleting all rows.  I can't see the difference between "delete every row in a table" and "remove all rows from a table".JohnEdit: actually, having looked at the choices again, neither of the DELETE options has correct syntax anyway.</description><pubDate>Tue, 30 Oct 2007 09:49:22 GMT</pubDate><dc:creator>John Mitchell-245523</dc:creator></item><item><title>RE: Truncate Table</title><link>http://www.sqlservercentral.com/Forums/Topic414168-34-1.aspx</link><description>I do not believe that the answer is correct.The question was the fastest way to delete every row in a table.Delete and truncate are not the same thing.Should the question have read "to remove all rows from a table" then I would agree with the truncate statement.This does not take into account things like identity values which would continue from the most recent number rather than completely reseed post truncate.</description><pubDate>Tue, 30 Oct 2007 09:41:29 GMT</pubDate><dc:creator>Nicholas Cain</dc:creator></item><item><title>RE: Truncate Table</title><link>http://www.sqlservercentral.com/Forums/Topic414168-34-1.aspx</link><description>Surely drop table is quicker?</description><pubDate>Mon, 29 Oct 2007 12:31:12 GMT</pubDate><dc:creator>RichB</dc:creator></item><item><title>RE: Truncate Table</title><link>http://www.sqlservercentral.com/Forums/Topic414168-34-1.aspx</link><description>I thought it had to be some sort of trick question.  (Halloween and all).  :)</description><pubDate>Wed, 24 Oct 2007 06:54:28 GMT</pubDate><dc:creator>Bob Fazio</dc:creator></item><item><title>RE: Truncate Table</title><link>http://www.sqlservercentral.com/Forums/Topic414168-34-1.aspx</link><description>It would certainly help my average!&lt;P&gt;Seriously though, apologies for the mistakes made in today's and yesteday's QoDs.&lt;/P&gt;&lt;P&gt;Tony.</description><pubDate>Wed, 24 Oct 2007 04:16:32 GMT</pubDate><dc:creator>Tony Davis</dc:creator></item><item><title>RE: Truncate Table</title><link>http://www.sqlservercentral.com/Forums/Topic414168-34-1.aspx</link><description>Can we have more questions where the answer is in the title of the question!John</description><pubDate>Wed, 24 Oct 2007 01:46:18 GMT</pubDate><dc:creator>John Mitchell-245523</dc:creator></item><item><title>Truncate Table</title><link>http://www.sqlservercentral.com/Forums/Topic414168-34-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/questions/T-SQL/61356/"&gt;Truncate Table&lt;/A&gt;[/B]</description><pubDate>Tue, 23 Oct 2007 21:49:52 GMT</pubDate><dc:creator>Site Owners</dc:creator></item></channel></rss>