I'm trying to insert 100,000,000 simple coordinate based records into a table. Is there a faster way to make this happen than the t-sql command below
declare @x int
declare @y int
set @x = 0
set @y = 0
begin tran
while @x < 10000
begin
while @y < 10000
begin
insert into world (x,y) VALUES (@x,@y)
set @y = @y + 1
end
set @y = 0
set @x = @x + 1
end
commit tran