Can you tell me the difference between DELETE & TRUNCATE
commands?

Answer Posted / pankaj kumar upadhyay

1) When we use delete command that time we will use
conditon or without conditon but when we use truncate
command so that time we will not use condition.

2)delete can roll back but truncate is not rollback.

3)Truncate is faster compare delete command.

4)delete is DML command while Truncate is DDL.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is create statement?

606


What is snapshot parameter in ssrs?

116


What is the difference between push and pull subscription? : sql server replication

716


What is buffer cash in sql server?

720


How to use user defined functions in expressions?

620






What is cross join in sql server joins?

701


What does normalization do to data?

633


What is the difference between online clustering and Offline clustering?

2021


What is global temp table?

671


What are the steps to process a single select statement?

600


What is the maximum length of an alert name?

697


What is a View ? Can we insert, Update and delete a view?

703


Write a sql query to get zero records from a table having n number of records?

809


What are sp_configure commands and set commands?

637


What is resource governor in sql server?

650