declare @index intset @index = 0while(@index<1000000)begin insert into [table]([name]) values(FLOOR(RAND(ABS(CHECKSUM(NEWID())))*1000)) set @index = @index +1end