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 are the types of joins in sql?

839


What do you mean by table and field in sql?

786


Explain stored procedure?

815


How to rename an existing column with sql server management studio?

719


what are defaults? : Sql server database administration

752


How to set a database state to offline in ms sql server?

760


What is schemabinding a view?

731


What is a file group?

830


What is difference between join and natural join?

684


How to specify the collation for a character data type in ms sql server?

783


What are different types of replication in sql server?

804


Can a table have 2 foreign keys?

705


Explain query editor regions

836


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

977


What is inline variable assignment?

818