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 the difference between varchar and nvarchar?

702


Explain something about security and SQL Azure?

106


what happens on checkpoint? : Sql server database administration

713


If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?

739


How do you improve the performance of a SQL Azure Database?

129


What have included columns when we talk about sql server indexing?

782


How can you find out which stored procedures are recompiling?

704


What do you understand by SQL*Net?

795


How to delete all rows with truncate table statement in ms sql server?

700


What is tabulation?

720


Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

1086


Do you know the isolation level that sql server support?

716


How to view the error log for any specific instance? : sql server database administration

786


After creating the cube, if we added a new column to the oltp table then how you add this new attribute to the cube? : sql server analysis services, ssas

742


How to handle error or exception in sql?

715