declare @Min int=1, @Max int =400 WHILE @Min <= @Max BEGIN INSERT INTO GAMA.dbo.TALONS (T_N) VALUES (@Min) SET @Min = @Min + 1 END