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
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Logged Operation

Author  Topic 

mahesh_bote
Constraint Violating Yak Guru

298 Posts

Posted - 2007-12-14 : 02:36:36
Can anybody explain whether Delete and Truncate are Logged Operations?

On some site, I came accross Truncate is not Logged Operation, on some site, Truncate is Logged Operation.

Can anybody explain, what exactly it is?

Thanks in advance,

Mahesh

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-12-14 : 02:47:59
Both are logged, but truncate is logged less. For details, check BOL.

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

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-12-14 : 03:25:19
Also refer http://weblogs.sqlteam.com/mladenp/archive/2007/10/03/SQL-Server-Why-is-TRUNCATE-TABLE-a-DDL-and-not.aspx

Madhivanan

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

- Advertisement -