Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
6
Answers
How to Check whether data is present or not in SQLDataReader
SIVA
12y
13.2k
1
Reply
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
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
ViewStateManagement Technique
How To Encrypt Stored Procedured In SQL SERVER 2005