Check for empty sqldatareader

  • Thread starter Thread starter Sosh123
  • Start date Start date
S

Sosh123

Hi,

Could anybody suggest a way of checking for an empty datareader, without
using Read()?

Thanks
 
Becuase it would move the row cursor on one. Looks like the HasRows
property is just the ticket though. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top