What is the difference between truncate and delete statement?

Answer Posted / rajiv singh

Truncate deletes all rows from table. But Delete deletes
row/rows by condition.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are different types of raid configurations? : Sql server database administration

701


How to execute a stored procedure in ms sql server?

733


Do you know sql server 2008 introduces automatic auditing?

682


What is indexed view? How to create it?

757


What is perspective, have you ever created perspective? : sql server analysis services, ssas

669






How to enter comments in transact-sql statements?

713


What happens if date-only values are provided as date and time literals?

749


Give an example of SQL injection attack ?

732


What is the difference in accessing db between sql server vs sql azure?

166


Does view occupy space?

699


What factors you will consider calculating the storage requirement for that view?

699


How to retrieve field values using mssql_result()?

808


Explain various data region available in ssrs with their use?

668


You want to check the syntax of a complicated update sql statement without executing it. What command should you use?

677


What are the disadvantages of using querystrings to send data from one page to another?

766