all groups > sql server (alternate) > february 2007 >
You're in the

sql server (alternate)

group:

SQL Help with purging old data


SQL Help with purging old data The Man
2/28/2007 8:55:42 AM
sql server (alternate):
Does anyone know how to purge old data in a MS SQL server 2000
database?
Re: SQL Help with purging old data Erland Sommarskog
2/28/2007 10:22:25 PM
The Man (LeJon7881@gmail.com) writes:
[quoted text, click to view]

I've answered this in another thread, but in just case someone see this:
to be able to delete old data, you need to be able to define what data
that counts as old, and this has to be done per table basis. This is not
something you can do generically. SQL Server does not know itself how
new or old some data is; that information would have to be in the data
itself.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
AddThis Social Bookmark Button