I don't use a datareader much (usually datasets/datatables), but is it possible to check the datareaders.length to see how many items are returned, and then handle the datareader from there?
great... i suggest everyone to use datareader if they just want to view the recordsets return... because datasets could drop your system performances very very amazing ^-^
this is how to know whether the datareader return any record
SqlDataReader objDataReader = blablabla;
if (objDataReader.Read() == false){
// it means no recordsets returned
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.