What is difference between TRUNCATE and DELETE statement

Answer Posted / nirmala.s

if u use delete to remove the data from the table,this will
delete the data.after using rollback the removed data can
be retrived.But in case of, truncate , it will delete the
data and that can't ever be retrived.even after using
rollback also. but the table structure of the table will
be there

if u are using drop command , this will delete entire
table.and its structure.

Is This Answer Correct ?    29 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bulkcopy in sql?

559


What is a dataset and what are the different types of datasets?

93


Is natural join and equi join same?

523


What is oltp (online transaction processing)?

582


Explain about service Broker functions?

613






What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?

741


Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication

569


Define self join?

629


Please explain go command in sql server?

592


what are the different ways to return the rowcount of a table?

573


What is cursor in ms sql server?

558


How to loop through returning rows?

574


How to disable stored procedure sql server?

959


How to create an inline table-valued function?

533


Tell me something about security and sql azure?

102