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 are recommended options to be used while using db mirroring? : sql server database administration

579


What are parameterized reports? What are cascading parameters in ssrs reports?

100


What is difference between Datepart() and Datename() in SqlServer?

730


What is snapshot parameter in ssrs?

109


How to execute a sql statement using odbc_exec()?

576






Explain what is it unwise to create wide clustered index keys?

552


What is difference between rollback immediate and with no_wait during alter database?

587


What are the authentication modes in sql server? How can it be changed?

607


What will be the value of @@fetch_status if a row that was a part of the cursor resultset has been deleted from the database after the time the stored procedure that opened the cursor was executed?

654


Explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?

520


Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?

640


Do you know what guidelines should be followed to help minimize deadlocks?

551


How will you monitor replication latency in transactional replication? : sql server replication

620


What is the difference between index seek vs. Index scan?

587


What is scrollable cursor?

547