What's the difference between DELETE TABLE and TRUNCATE
TABLE commands?

Answer Posted / srisenthil

delete table gives the transactional log where as in
truncate it is not delete the total rows inthe table but
structure of the table has never changed after the
statement is executed it is roll back and the constraints
after the delete statement is remain same where as it is
not in the truncate statement

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dbcc command in sql server?

589


Explain the use of containers in ssis?

536


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

656


What are click through reports?

99


What is left outer join in sql server joins?

554






How to create median function?

118


In one interview...interviewer ask me question pleas tell me sql server architecture.. can any body tell me the sql server architecture with digram

1516


Why we should not use triggers?

544


Explain mixed authentication mode of sql server?

548


Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?

584


Do you know what is normalization of database? What are its benefits?

562


What are the new scripting capabilities of ssms? : sql server management studio

559


What xml support does the sql server extend?

532


What is difference between views and stored procedures?

516


How to drop an existing user defined function in ms sql server?

570