I need to test my mail server. How can I make a Select statement that selects say ID=5469 a thousand times.
If your are doing this in sql Server
declare @cnt int set @cnt = 0 while @cnt < 1000 begin select '12345' set @cnt = @cnt + 1 end
select '12345' can be any expression
select '12345'