washaw
Programmer
- Feb 13, 2008
- 48
In my little assignment, I am doing some data archival with the data older than 120 days
after I did archiving I delete data from these tables
I use the following query for each tables (they are 10 of 'em)
delete from table1
where DATEDIFF(DAY, CREATED_DATE, GETDATE()) > 120
But it is extreamly slow, Is there any way to make it faster
THanks
after I did archiving I delete data from these tables
I use the following query for each tables (they are 10 of 'em)
delete from table1
where DATEDIFF(DAY, CREATED_DATE, GETDATE()) > 120
But it is extreamly slow, Is there any way to make it faster
THanks