1

SqlDataReader.Read() is a method which returns a bool but advanced to the next record in a recordset.

What factors influence whether true or false is returned?

Thanks

2
  • In addition to the answers posted, it will return false if there are no rows. Commented Apr 21, 2010 at 23:15
  • And FileNotFoundException of course. Commented Apr 22, 2010 at 0:56

2 Answers 2

2

From the help of SqlDataReader.Read:

returns true if there are more rows; otherwise false.

Sign up to request clarification or add additional context in comments.

Comments

2

From the documentation:

true if there are more rows; otherwise false.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.