R
Rob R. Ainscough
I'm trying once again to accomplish something pretty simple, but it appears
the DataReader can only return accurate results in the .RecordsAffected
property if it is closed? In fact, on a SELECT based SQL query the
RecordsAffected always returns -1? Since the datareader is not very useful
to me closed, is there any other way to obtain a record count PRIOR to
cycling thru a datareader?
I'm using a datareader because it is very fast and I don't need to change
results and only need to move thru the returned information forward once --
as I understand it this is a matched situation for using a datareader.
However, I need to provide a progressbar where it's max value is based on
the returned rows in the datareader.
Am I missing something? (probably, as usual)
Thanks, Rob.
the DataReader can only return accurate results in the .RecordsAffected
property if it is closed? In fact, on a SELECT based SQL query the
RecordsAffected always returns -1? Since the datareader is not very useful
to me closed, is there any other way to obtain a record count PRIOR to
cycling thru a datareader?
I'm using a datareader because it is very fast and I don't need to change
results and only need to move thru the returned information forward once --
as I understand it this is a matched situation for using a datareader.
However, I need to provide a progressbar where it's max value is based on
the returned rows in the datareader.
Am I missing something? (probably, as usual)
Thanks, Rob.