6
Answers

How to Check whether data is present or not in SQLDataReader

SIVA

SIVA

12y
13.2k
1
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)