Differences Between Truncate and Delete in SQL Server

Hello everyone,

In this article, I will give information about the differences between Truncate and Delete in SQL Server.

We’ve all wondered about the differences between Truncate and Delete, which we all use in SQL Server.

  1. Both commands delete the data inside the table, not the structural content of the table.
  2. Truncate consumes less log resources while Delete command consumes a lot of log resources. That’s why the Truncate command works faster than the Delete command. As for the reason, the Delete command deletes the lines one by one and makes a transaction log entry for each line it deletes.
  3. When using the delete command, we have the possibility to add the where condition to our query. There is no such facility in the truncate command, it deletes all records.
  4. If there is an identity column in our table, when the Delete is done, the column continues to count from where it left off. When Truncate Table is made, it will start counting from the beginning.
  5. If there is a Trigger for the Delete operation on the table, the Trigger will not be triggered when we make a Truncate Table. In the delete command, the Trigger is triggered.
  6. Tables containing Foreign Keys are not made Truncate Table. Delete command should be used.

As you can see, we have learned the differences between Truncate and Delete in SQL Server.

Good luck to everyone in business and life.


Yavuz Selim Kart

I try to explain what I know in software and database. I am still improving myself by doing research on many programming languages. Apart from these, I am also interested in Graphic Design and Wordpress. I also have knowledge about SEO and Social media management. In short, I am a determined person who likes to work hard.

You may also like...

Don`t copy text!