Difference between Delete and Truncate in sql server
T he difference between DELETE and TRUNCATE in Sql Server is one of the most important interview questions asked to freshers. I have tried to explain it here so that freshers can better understand the difference between these two. DELETE The DELETE command is used to remove rows from a table . A WHERE clause can be used to delete specified records based on conditions. If no WHERE condition is specified, all rows will be removed. After performing a DELETE operation you need to COMMIT or ROLLBACK the transaction to make the change permanent or to undo it. It removes rows from a table or view. DELETE statements delete rows one at a time, logging each row in the transaction log, as well as maintaining log sequence number (LSN) information. e.g. delete from employee ;( this command will remove all the data from employeetable) delete from empl...