sql bulk insert data
--select count(*) from his_alarm --DELETE FROM his_alarm where his_alarm.alarm_time = '2019-07-23 10:12:24.000' DECLARE @i INT SET @i = 0 WHILE ( @i < 300000 ) BEGIN INSERT INTO his_alarm ( [alarm_time], [alarm_code], [subsys_id], [alarm_desc], [alarm_location], [alarm_objectid], [status], [alarm_acktime], [alarm_ackuser], [alarm_proctime], [alarm_procuser], [alarm_procdesc], [alarm_recovertime], [alarm_recoveruser] ) VALUES ( N ' 2019-07-23 13 is: 12 is: 21.000 ' , N ' 990 000 045 ' , N ' 100 000 061 ' , N ' adapter abnormal ' , N '' , N ' 100 000 061 ' , N ' . 1 ' , N ' 2019-07 14 -22: 12 is: 21.000 ' , N ' times out to confirm ' , NULL , NULL , N ' [acknowledgment timeout] ' , NULL , NULL ) the SET @i = @i + . 1 the END