davej Posted April 25, 2012 Share Posted April 25, 2012 (edited) http://msdn.microsof...v=vs.90%29.aspxhttp://msdn.microsof...v=vs.90%29.aspx I'm trying to refresh my memory on SqlDataReader and the useful tidbits that are available such as HasRows and FieldCount... but there is no way to know how many rows were returned until you read them all? Don't I also have to be real careful to test for nulls? I forget what the hazard is. I remember something gets screwed up. Thanks. Edited April 25, 2012 by davej 1 Link to comment Share on other sites More sharing options...
justsomeguy Posted April 25, 2012 Share Posted April 25, 2012 I don't see a way to determine how many rows were returned. If you need to check for null values you can use the IsDBNull method. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now