The biggest myth ever in SQL Server is TRUNCATE operation cannot be rolled back whereas DELETE operation can, as DELETE operation fills the transaction log with enough details to rollback which is not in the case of TRUNCATE. This lab proves that TRUNCATE operation also a logged operation and can be rolled back. In the first exercise, we will learn the logging differences between TRUNCATE and DELETE and also learn to roll back the TRUNCATE operation. In the second exercise, we will learn to recover the deleted data due to TRUNCATE or DELETE operation by using transaction log.

Subscribe to Download


Version1.0
Download0
File Size810.46 KB
Create DateMarch 30, 2017
Last UpdatedMarch 30, 2017
SQL Server Advanced Query Tuning
Temporal Tables in SQL Server 2016