D
David Beaven
I am creating an aspx page to show (i.e. read only) hundreds or probably
thousands of items from two database queries. The user may of course only
want to read one or two pages worth. I have (I think) two possible
solutions:
a) Create a dataset from a first query. Populate one new field using a
datareader (I want to concatenate each result of a second query). Pros:
Easy to navigate (e.g via datagrid), cons: memory intensive (we may only
read one page!)
b) Do both queries using a datareader. Mark my place in the query result
with a
session level variable and if wanting to show record 210-230 use the
datareader to spin
210 times before showing data. Pros: ?quicker (or can the select statement
return from row 210 onwards?), cons: need to keep track of which page /query
results are wanted.
Any suggestions greatfully received
Thanks, David
thousands of items from two database queries. The user may of course only
want to read one or two pages worth. I have (I think) two possible
solutions:
a) Create a dataset from a first query. Populate one new field using a
datareader (I want to concatenate each result of a second query). Pros:
Easy to navigate (e.g via datagrid), cons: memory intensive (we may only
read one page!)
b) Do both queries using a datareader. Mark my place in the query result
with a
session level variable and if wanting to show record 210-230 use the
datareader to spin
210 times before showing data. Pros: ?quicker (or can the select statement
return from row 210 onwards?), cons: need to keep track of which page /query
results are wanted.
Any suggestions greatfully received
Thanks, David