Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 query

Author  Topic 

sankar_krs
Starting Member

1 Post

Posted - 2008-03-06 : 00:29:47
what is the difference b/n drop and truncate...delete and truncate in sql?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-03-06 : 01:29:28
Did you check what SQL Server Books Online has to offer about this or perhaps checked your class materials?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2008-03-06 : 01:44:01
DELETE is a logged process on a per row basis.Every row is logged and physically deleted.TRUNCATE is also logged , but the focus is on deallocating the pages upon which the data exists.

Jack Vamvas
--------------------
Search IT jobs from multiple sources- http://www.ITjobfeed.com
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-03-06 : 08:28:03
Googling would give you lot of related links

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -