What is the difference between Drop and Truncate

Answer Posted / pavan

Drop will delete all the existing structure. if it applies
to a table, Truncate will delete only the data while
keeping the structure of the table as it is.

Is This Answer Correct ?    72 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sharding?

88


How can i Relate Tables in SSIS

577


What is conditional split?

543


What are ddl triggers and types of ddl trigger?

610


Explain what are magic tables in sql server?

538






What are the different types of subquery?

619


What are .mdf files?

524


Can you explain different types of joins?

549


How to reaname table name without using sp_Rename in sql server..?

530


What is indexing and its types?

532


What is the use of @@spid?

574


Explain the categories of stored procedure i.e. System stored procedure, local stored procedure, temporary stored procedure, extended stored procedure, remote stored procedure?

555


Is the order of columns in the set clause important in ms sql server?

521


What are the two modes of authentication in sql server?

526


What do you understand by a stored procedure?

607