Can you tell me the difference between DELETE & TRUNCATE
commands?

Answer Posted / kumar

Truncate will fail if the concerned table has foreign key
constraints while delete doesnt.

Is This Answer Correct ?    15 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a print index?

502


code to create procedure for taking databse backup in sql server or i have the query for it but what it's query returns means i want to show on my jsp that the databse backup has been taken on the basis of that return value.does it returns 0 or 1.wat is the code for that

1758


What is a data source or ds? : sql server analysis services, ssas

571


what is a transaction? : Sql server database administration

473


What is indexing in sql server with example?

525






Explain insert into select statement?

527


Difference between DELETE and TRUNCATE?

617


What do you mean by acid?

578


What is inner join in sql server joins?

547


How to get a list all databases on the sql server?

583


What is the use of tempdb? What values does it hold?

569


When do you think a developer should use sql server-based cursors?

524


Explain what are the events recorded in a transaction log?

558


In case you have filters in your report, when filters will be applied in cached report instance?

81


What is the use of toad or sqldbx.?

726