What is the difference between Drop and Truncate

Answer Posted / koti-khammam

TRUNCATE: Only data is deleted structure of the table
exists.


DROP: Both data and structure of the table gets removed.

Is This Answer Correct ?    57 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is the use of update_statistics command?

738


Why it is recommended to avoid referencing a floating point column in the where clause?

705


How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?

129


What are the steps to process a single select statement?

689


Can two different columns be merged into single column? Show practically?

822






What are the types of indexes?

768


Is foreign key unique?

750


What is sql stored procedure?

787


What is cached report?

120


Comment,Datatypes are unlimited

1804


What is the difference between a unique key and primary key?

687


What is the difference between getdate and sysdatetime?

722


What is the use of toad or sqldbx.?

887


What is the difference between the export /import functions in sql studio and standalone sql manager? : sql server management studio

800


You have modified 100 store procedures and want to replicate these changes from development to prodution, and production can have users using the Server/DB, how would you replicate without causing issues?

1901