Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newid() not really cutting it....

Status
Not open for further replies.

m0nkey

MIS
Mar 20, 2003
31
Hi all,
i have a large database with 150 million records that i want to pull 1 mil random records. i tried to order by newid() and this caused my tempdb to fill up after running for 33 hrs...anyone have any ideas on how to generate some random results...this is a consumer contact database used for market research...is there an efficient way to generate random results on such a large database...thanks in advance...

m0nkey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top