<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Differences between Delete and Truncate in SQL Server - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/differences-between-delete-and-truncate-in-sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/differences-between-delete-and-truncate-in-sql-server/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Fri, 03 Jun 2022 11:42:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>Differences between Delete and Truncate in SQL Server - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/differences-between-delete-and-truncate-in-sql-server/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Difference between Delete and Truncate</title>
		<link>https://www.wikitechy.com/interview-questions/dbms/difference-between-delete-and-truncate/</link>
					<comments>https://www.wikitechy.com/interview-questions/dbms/difference-between-delete-and-truncate/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Fri, 03 Jun 2022 11:42:11 +0000</pubDate>
				<category><![CDATA[DBMS]]></category>
		<category><![CDATA[delete vs truncate vs drop in sql]]></category>
		<category><![CDATA[difference between delete and drop]]></category>
		<category><![CDATA[Difference between DELETE and TRUNCATE]]></category>
		<category><![CDATA[Difference between Delete and Truncate Command]]></category>
		<category><![CDATA[difference between delete and truncate in oracle]]></category>
		<category><![CDATA[Difference between Delete and truncate in sql query]]></category>
		<category><![CDATA[difference between delete drop and truncate]]></category>
		<category><![CDATA[Difference between TRUNCATE and DELETE in SQL]]></category>
		<category><![CDATA[Differences between Delete and Truncate in SQL Server]]></category>
		<category><![CDATA[truncate command in sql]]></category>
		<category><![CDATA[What is the main difference between delete and TRUNCATE in SQL]]></category>
		<category><![CDATA[why truncate is faster than delete]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4427</guid>

					<description><![CDATA[&#160; Delete Truncate Used to delete rows from a table based on the condition provided on the where clause. Used to delete the entire data from rows from the table. Similar to delete command with no where clause  Delete commands deletes only the rows that are mentioned in where clause. &#160; Truncate command deletes complete [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4428 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/what-is-the-difference-between-delete-and-truncate.jpg" alt="" width="558" height="441" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/what-is-the-difference-between-delete-and-truncate.jpg 558w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/what-is-the-difference-between-delete-and-truncate-300x237.jpg 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/what-is-the-difference-between-delete-and-truncate-390x308.jpg 390w" sizes="(max-width: 558px) 100vw, 558px" /></p>
<p>&nbsp;</p>
<table>
<tbody>
<tr>
<td width="312">
<h4 id="delete" style="text-align: center;"><strong>Delete</strong></h4>
</td>
<td width="312">
<h4 id="truncate" style="text-align: center;"><strong>Truncate</strong></h4>
</td>
</tr>
<tr>
<td width="312">Used to delete rows from a table based on the condition provided on the where clause.</td>
<td width="312">Used to delete the entire data from rows from the table. Similar to delete command with no where clause</td>
</tr>
<tr>
<td width="312"> Delete commands deletes only the rows that are mentioned in where clause.</p>
<p>&nbsp;</td>
<td width="312">Truncate command deletes complete row from  a table.</p>
<p>&nbsp;</td>
</tr>
<tr>
<td width="312">We can roll back the delete commands.</p>
<p>&nbsp;</td>
<td width="312">We cannot roll back the truncate commands.</p>
<p>&nbsp;</td>
</tr>
<tr>
<td width="312">Delete command is very slow because it maintains a log</p>
<p>&nbsp;</td>
<td width="312">That&#8217;s why it is fast. This command is very fast as it does not maintain any log</p>
<p>&nbsp;</td>
</tr>
<tr>
<td width="312">It uses row lock when performing delete function</p>
<p>&nbsp;</td>
<td width="312">Truncate command uses table log while performing the truncate function</p>
<p>&nbsp;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/dbms/difference-between-delete-and-truncate/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
