I need to delete about 10 million rows from a table whilst it is being added to (its a web log).I'm thinking about deleting 250,000 rows at a time (which takes about 10 seconds).I was going to do this in a loop using a WAITFOR DELAY of 10 seconds.Will the resources be freed in the interim to allow other users to INSERT / UPDATE this table?Here's my proposed codeDECLARE @intRowCount int, @intErrNo intSET ROWCOUNT 250000SELECT @intRowCount = 1, -- Force first loop iteration @intErrNo = 0WHILE @intRowCount > 0 AND @intErrNo = 0BEGIN DELETE MyLogTable WHERE MyDate <= DATEADD(Month, -1, GetDate()) SELECT @intErrNo = @@ERROR, @intRowCount = @@ROWCOUNT WAITFOR DELAY '000:00:10'ENDSET ROWCOUNT 0
ThanksKristen