What is the difference between Drop and Truncate

Answer Posted / vishant kakwani

drop is delete the data with table and if id is used as autoincrement then id can't be started with 1.
Truncate is delete the only data table as it is and autoincrement id will started with 1 every time if you truncate the table.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this statement do @@rowcount?

741


Explain what is raid and what are different types of raid levels?

716


What is service broker?

768


Do you know what are various aggregate functions that are available?

719


What is the recursive stored procedure in sql server?

724


Tell me what are cursors and when they are useful?

708


How to read data in a table with "select" statements?

739


How can a database be repaired?

739


define and explain the differences between clustered and non-clustered indexes.

830


You accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover?

741


Explain different types of index?

776


what are the new features in SSRS?

115


What is difference between clustered and non clustered index?

704


Write an sql query to sort a table according to the amounts in a row and find the second largest amount.

714


What is index in an assignment?

699