Hi,
First of all check if you have index built on ID field. If you do not have
index, then the whole process will be slow, because database engine will
scan rows to find matching one. Also you could optimize it using IN clause
to delete batch of records in one shot
DELETE FROM XXX WHERE ID IN ( 0, 1, 2,3, 4...)
--
Val Mazur
Microsoft MVP
> Hello,
>
[quoted text clipped - 9 lines]
>
> thanks