I need to test my mail server. How can I make a Select statement that selects say ID=5469 a thousand times.
create table #tmp1 (id int, fld varchar(max)) insert into #tmp1 (id, fld) values (1,'hello!'),(2,'world'),(3,'nice day!')
select * from #tmp1 go
select * from #tmp1 where id=3 go 1000
drop table #tmp1