Deleting/archiving data in SQL Server 2005

A delete can now use TOP i.e.

DELETE TOP (2000) FROM MyBigTableWHERE someCondition = true  ORDER BY Dateolumn ASC

Michael Campbell has blogged about removing data from a table in chunks This can be simplified even further in SQL Server 2005 using the above.

This very is similar to my post


Published Thursday, November 10, 2005 7:12 PM by simonsabin


No Comments