What is the difference between truncate and delete statement?

Answer Posted / valarmathi

truncate delete all records from the table and it is auto
commit. We can't able to rollback the data after performing
truncate operation.

delete statement delete the specific or all records from
the table. But we can able to rollback the deleted record

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by datasource?

518


What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration

629


How to provide values to stored procedure parameters in ms sql server?

533


What are alternate keys?

576


Tell me about the approaches which you used to counter the DI problems.

762






What do you understand by a stored procedure?

604


How to create and drop temp table in sql server?

589


How can you hide the sql server instances?

517


Difference between DELETE and TRUNCATE?

617


What is the difference between substr and charindex in the sql server?

510


In which sql server version report builder introduced?

105


What is difference between clustered and non clustered index?

530


Do you know the different ddl commands in sql?

591


hi i am working as a testengineer , so i want to no the backend data base connection can any one tell mwe in detail

1788


What are the different types of subquery?

617