what is the difference between delete,drop and truncate

Answer Posted / krishna

DELETE,DROP,TRUNCTATE are to use the remove the rows from the table

DELETE: Delete is used to delete the rows from table by using where condition also and we can ROLLBACK it also

DROP: Delete rows permanently and we can not ROLLBACK it.

TRUNCATE : Delete the data not the structure means in this delete only data but structure is same

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?

654


Explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

660


How many types of attribute relationships are there? : sql server analysis services, ssas

584


What are the different authentication modes in sql server? How can it be changed?

567


We need to perform what steps in the following order to work with a cursor?

712






What is PROJECTION Operation?

610


What is bookmark link in ssrs?

108


What are the filtered indexes?

603


How can we determine what objects a user-defined function depends upon?

518


Can I run multiple instances of sql server 2000 at the same time on one computer?

606


Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?

594


what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration

530


What are the differences between char and nchar in ms sql server?

537


John exports information periodically from a microsoft sql server database to an oracle database what is the best way to do this?

532


Why can there be only one clustered index and not more than one?

546