GurdeepS
GurdeepS

Reputation: 67263

What influences the return value of SqlDataReader.Read()?

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

Upvotes: 1

Views: 173

Answers (2)

Mark Byers
Mark Byers

Reputation: 838964

From the documentation:

true if there are more rows; otherwise false.

Upvotes: 2

Reed Copsey
Reed Copsey

Reputation: 564771

From the help of SqlDataReader.Read:

returns true if there are more rows; otherwise false.

Upvotes: 2

Related Questions