m0nkey
MIS
- Mar 20, 2003
- 31
Hi all,
Is there a way to select a certain range of results? I have a large database (75 million rows) and when I get a result set it is usually about 200k rows...if I wanted to select the top 50K that would be just a top 50k statement but what if I wanted row 50K through 100K....i was hoping to save this row number range in some variable and then save all the search parameter variables with it from the same sproc to a table so i can come back the next day and generate a result set with the next 50K rows till the sproc is done pulling on those variables passed it....
is this at all clear...i can explain further...
thanks as always...
mark
Is there a way to select a certain range of results? I have a large database (75 million rows) and when I get a result set it is usually about 200k rows...if I wanted to select the top 50K that would be just a top 50k statement but what if I wanted row 50K through 100K....i was hoping to save this row number range in some variable and then save all the search parameter variables with it from the same sproc to a table so i can come back the next day and generate a result set with the next 50K rows till the sproc is done pulling on those variables passed it....
is this at all clear...i can explain further...
thanks as always...
mark