Compare and contrast TRUNCATE and DELETE for a table.

Answer Posted / ramesh

Truncate is to delete the entire data of any table .does not
have criteria deletion
where as Delete can do that job
However Deleted blocks still persists and have to be
shrinked .otherwisem You still feel the Deleted Recs while
you Query Against

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In what script is "snap$" created? In what script is the "scott/tiger" schema created?

1948


Draft one mock email requesting your non-technical management grant you downtime to (provide justification where applicable) complete the following tasks: (1) Generate statistics on a large table; (2) Generate an RDA – if you don't know what an RDA is please say so. (3) Rename datafiles.

1690


What are the high-availability solutions in sql server and differentiate them briefly? : sql server DBA

598


How can you control the amount of free space in your index pages? : sql server DBA

737


Can you tell me about your experience with the administration of COTS system..? Also, how do you set up seed data..?

2191






A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables?

2000


what do you understand by fine-grained auditing?

633


What are the differences in clustering in sql server 2005 and 2008 or 2008 r2? : sql server DBA

550


I have A,B,C servers.i want to 3 servers jobs move to D server(target server)..how? note: i said that take the backup of msdb and restore to the target server..he said while restoring jobs replaced. what is the solution

1646


What are the different types of indexes available in sql server? : sql server DBA

573


Explain the difference between a FUNCTION, PROCEDURE and PACKAGE.

1846


What is the default port no on which sql server listens? : sql server DBA

559


how can you create a user-defined lock?

586


What are statistics, under what circumstances they go out of date, how do you update them?

1808


Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.

1506