T-sql t-sql never ending delete
set rowcount 10000
while 1=1
begin
DELETE FROM customers WHERE cust_num LIKE '%8009______'
IF @@rowcount = 0
BREAK
ELSE
CHECKPOINT
end
Combative Cod