V
Vadim
Hi,
Where does the datareader store it's data in this scenario:
Create sqlconnection,
Create sqlCommand - query specified here could return 1000 rows
SqlCommand.ExecuteDataReader, returns datareader
use DataReader.read to iterate through the rows.
As far as I understand all the 1000 rows in this case will be initially
brought to the client and consume memory,
they won't stay on the db server and be retrieved one by one with each read.
Is this correct?
Or will they stay on a db server somehow and be retrieved one by one, since
data reader require open connection all the time?
Thank you
Vadim
Where does the datareader store it's data in this scenario:
Create sqlconnection,
Create sqlCommand - query specified here could return 1000 rows
SqlCommand.ExecuteDataReader, returns datareader
use DataReader.read to iterate through the rows.
As far as I understand all the 1000 rows in this case will be initially
brought to the client and consume memory,
they won't stay on the db server and be retrieved one by one with each read.
Is this correct?
Or will they stay on a db server somehow and be retrieved one by one, since
data reader require open connection all the time?
Thank you
Vadim