What is the difference between truncate and delete statement?

Answer Posted / ismail hasan

truncate deletes records from a table and while truncating a
table, the table will be dropped from the database and will
again be created automatically. No where clause is
acceptable in truncate statement and one can't restore the
previous data (i.e no rollback is possible) into the table.
It's an efficient process.

Delete statement will delete a particular row(s) on your
choice.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if null values are involved in string operations?

558


What is the difference between getdate and sysdatetime?

535


How will you know when statistics on a table are obsolete?

606


Can you use order by when defining a view?

573


what is memory-optimized nonclustered indexes

557






Issues related in upgrading SQL Server 2000 to 2005 / 2008

1501


 Explain what is sql override for a source taLle in a mapping?

571


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

1787


How to create and drop temp table in sql server?

589


What is RAID? What are the different types of RAID configurations?

613


What is set nocount on?

501


Can the query output be sorted by multiple columns in ms sql server?

553


What will be the maximum number of index per table?

589


Can we check locks in database? If so, how can we do this lock check?

525


Explain about Normalization?

567