WHILE (1 = 1)
BEGIN
BEGIN TRANSACTION
UPDATE TOP (300) [Your_table_to_update]
SET Your_column_to_update = 4
WHERE check_condition='your chaeck value'
IF @@ROWCOUNT = 0 -- terminating condition;
BEGIN
COMMIT TRANSACTION
BREAK
END
COMMIT TRANSACTION
print 'updated'
--if you want to use delay uncomment below
-- WAITFOR DELAY '00:00:01';
ENDThis code snippet is for update data in batch.
