Is there an easy way to reset or clear a DataReader so it can be read through more than one time?
I found a Close method but not an open method.
Please show code samples if it can be done.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A DataReader is created and returned by using a SQL statement or stored procedure. In simple terms the DataReader is basically a cursor in the database data. If you want to use it again, recreate it again.