SIVA

SIVA

  • NA
  • 742
  • 707.5k

How to Check whether data is present or not in SQLDataReader

Jan 23 2012 7:21 AM
Hi All,

I have DataReader with some sample data.
I need to check that whether data is present or not

i used following statement to check that

if((oDR["Team_AppRate"]!= null))

_iCount++;


So my requirement is i need to check whether data is present or not in Team_AppRate column in the database

but i got the following error

Invalid attempt to read when no data is present

How can i check that whether data is present or not in that column in database

Answers (6)