G
Gary Howlett
Hi,
Im using c# and sql 2005 to retrieve data.
What im trying to do is...
1) Connect to webservice
2) Open DB connection
3) Read & return 100 records
4) Do some process
5) Reconnect to webservcice
6) start now at record (currently 101)
7) Read & return 100 records
8) Loop 4
I dont wish to use data sets, but i was wondering if there is a way in say
T-SQL etc that you perform a SELECT statement to say just get 100 records a
time but starting at record X.
At the moment im calling Read(); on the SqlDataReader x times then when i
get to start record i want, start pulling the fields out.
Is this the quickest way? is there an alternative?
Mamy Thanks
Gary
Im using c# and sql 2005 to retrieve data.
What im trying to do is...
1) Connect to webservice
2) Open DB connection
3) Read & return 100 records
4) Do some process
5) Reconnect to webservcice
6) start now at record (currently 101)
7) Read & return 100 records
8) Loop 4
I dont wish to use data sets, but i was wondering if there is a way in say
T-SQL etc that you perform a SELECT statement to say just get 100 records a
time but starting at record X.
At the moment im calling Read(); on the SqlDataReader x times then when i
get to start record i want, start pulling the fields out.
Is this the quickest way? is there an alternative?
Mamy Thanks
Gary