D
David Jessee
I have a SqlDataReader.....
dim dr as SqlDataReader = GetReader;
I want to count the returned records....
dim i as integer
do while dr.read()
i+=1
Loop
I end up 2450 (life is good)
However, if I, instead say
dim i as integer
Dim en ad IEnumerator = DirectCast(dr,IEnumerator)
Do while en.MoveNext()
i+=1
Loop
I end up with 2394
What is up with that? Same SQL statement....no changes in the database.
Its just that when I cast the DataReader into an IEnumerable interface, its
not getting some records
Ideas?
dim dr as SqlDataReader = GetReader;
I want to count the returned records....
dim i as integer
do while dr.read()
i+=1
Loop
I end up 2450 (life is good)
However, if I, instead say
dim i as integer
Dim en ad IEnumerator = DirectCast(dr,IEnumerator)
Do while en.MoveNext()
i+=1
Loop
I end up with 2394
What is up with that? Same SQL statement....no changes in the database.
Its just that when I cast the DataReader into an IEnumerable interface, its
not getting some records
Ideas?