What is the difference between Drop and Truncate

Answer Posted / lakshmi

Drop can be used to drop the entire table including data
and structure of table where as truncate removes rows from
table but the structure of table remains as it is.

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why truncate is ddl?

615


How do I find the port number for sql server?

506


What is 'Join' and explain its various types.

631


How many cores do I need for sql server 2016?

509


What is a unique index?

532






How to rename databases in ms sql server?

631


Tell me what do you understand by a view? What does the with check option clause for a view do?

647


How can you find out which stored procedures are recompiling?

518


Can we insert data if clustered index is disabled?

515


Which tools are available to manage SQL Azure databases and servers?

93


What is the federation in sql azure?

79


What are logical/boolean operations in ms sql server?

547


How to rename an existing column with the "sp_rename" stored procedure in ms sql server?

558


What are the built in functions in sql server?

493


How to drop an existing stored procedure in ms sql server?

548