my table (sql sever 2000) contains large amount of rows, when i delete row, it extremely slow.
i saw some post/forum that suggest to use a WHILE loop function to delete record by batch.
my sql is:
DELETE FROM Tprs_master where Fincmonth='201109';
I had rewrite to:
DELETE FROM(SELECT TOP 100 FROM tprs_master) AS t1 WHERE t1.Fincmonth='201109'
but it doesn't work.
how can I rewrite the above sql to DELETE TOP style ? Thanks