,'2015-01-01 00:00:00') h INTO vinson_h DELETE vinson_h DECLARE @h int SELECT @h=DATEDIFF(HOUR,'2015-01-01 00:00:00',GETDATE()) WHILE(@num<=@h) BEGIN INSERT INTO vinson_h(h) values (DATEADD(HOUR,@num,'2015-01-01 00:00:00')) END SELECT * FROM vinson_h…