In Ado.net DataReader object is a forward-only and read-only cursor.
ExecuteReader requires a live connection to the data source.
The DataReader object cannot be directly instantiated. Instead, we must call the ExecuteReader() method of the command object to obtain a valid DataReader object.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
In Ado.net DataReader object is a forward-only and read-only cursor.
ExecuteReader requires a live connection to the data source.
The DataReader object cannot be directly instantiated. Instead, we must call the ExecuteReader() method of the command object to obtain a valid DataReader object.