Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
How to Check whether data is present or not in SQLDataReader
SIVA
Jan 23 2012 7:21 AM
13.2k
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
ViewStateManagement Technique
How To Encrypt Stored Procedured In SQL SERVER 2005