What is the difference between Drop and Truncate

Answer Posted / suman kalyan betal

DROP means it's drop the table(with rows,Pk_key, Fk_key and
indexces)from the database.
TRUNCATE do the same as DROP but maintain the Pk_key,
Fk_key and indexces declaration only remove rows.

---by suman kalyan betal (suman_kal@rediffmail.com)

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the instances when triggers are appropriate?

520


What is scalar user-defined function?

546


What according to you is the difference between mysql and sql server performance?

556


What do you mean by a Composite primary key?

588


Explain transaction server auto commit?

531






What is named query? : sql server analysis services, ssas

509


How to create new tables with "select ... Into" statements in ms sql server?

510


Explain about Views?

599


What are the differences between left join and inner join in sql server?

580


What is the difference between ddl and dml?

566


Explain temporary table vs table variable by using cursor alternative?

517


What are the different methods available under sqlcommand class to access the data?

684


What is meant by datasource?

510


How to delete duplicate rows from table except one?

543


What do you mean by acid?

572