DECLARE @Min SMALLINT DECLARE @Max SMALLINT SET @Min = -2 SET @Max = 2 WHILE @Min <= @Max BEGIN PRINT @Min SET @Min = @Min + 1; END