Select * From MAIN.[AP01SendQueueNew] Limit 1000 update AP01SendQueueNew set stauts = 'wait' where status = 'run'