5000 taken vety much time and memory i just advice to split it into number of pages with next link
but if you have to do that you can quite fast it by making your record set ForwordOnly in its open statment and you may open them on more than one time like
Rec.open "Select * from mytable where id < 1000" , conn,1,2
diplay the 1st 1000
Rec.open "Select * from mytable where id < 2000 and id >= 1000 " , conn,1,2
diplay the 1000-2000
Rec.open "Select * from mytable where id < 3000 and id >= 2000 " , conn,1,2
diplay the 2000-3000
this may be better since you don't feach all data in same time (memory )
Main Topics
Browse All Topics





by: Makr_Watson27Posted on 2004-04-14 at 13:27:35ID: 10827423
It depends on how much data you are bringing back and the backend database you are using. e.com/Web/ Web_Langua ges/ASP/ Q_ 20850876.h tml?query= recordset+ paging+goo gle& search Type=topic
Generally you don't want to be looking at bringing back 5000 records at a time, after all most people get bored after 10.
So what you need to look into is paging, this is a hot topic in any ASP forum so have a look at the following previous question for more info:
http://www.experts-exchang