Long story short; I am testing a system to purge entries from a table over a network connection, and the functionality is predicted to handle over 2 billion entries at most.
I need to stress test this to be certain.
Here's my test script (At best it's able to generate 9.8 million in ten minutes.)
DECLARE @I INT=0
WHILE @I <2000000001
BEGIN
INSERT INTO "Table here"
VALUES(@I)
SET @I=@I+1
END
Can anyone suggest anything, or give me an idea what the upper limits of my test environment might be in this situation?
Below is a method using CROSS JOIN in batches of 10M. This loaded 2 billion rows in about 6 minutes on my desktop machine.