J
Johnny Jörgensen
Is there any way of finding out how many rows that are returned in an
System.Data.SqlClient.DataReader by a SELECT clause BEFORE you start reading
the data?
The SqlDataReader object doesn't seem to have any properties that tell that
like Rows.Count etc...
The RowsAffected property always returns -1 when it's a SELECT clause. It
only works with UPDATE, INSERT and DELETE.
Cheers,
Johnny J.
System.Data.SqlClient.DataReader by a SELECT clause BEFORE you start reading
the data?
The SqlDataReader object doesn't seem to have any properties that tell that
like Rows.Count etc...
The RowsAffected property always returns -1 when it's a SELECT clause. It
only works with UPDATE, INSERT and DELETE.
Cheers,
Johnny J.