---
title: "What is the role of DataReader object?"  
description: "What is the role of DataReader object?"  
author: "Sumit Kesarwani"  
published: 2014-01-27  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/1891/what-is-the-role-of-datareader-object  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What is the role of DataReader object?

A DataReader object provides forward only, read only access to a database.

The connection to the database must be open while accessing data through DataReader object.

It loads only a single row at a time in the memory.

## Answers

### Answer by Sumit Kesarwani

A DataReader object provides forward only, read only access to a database.

The connection to the database must be open while accessing data through DataReader object.

It loads only a single row at a time in the memory.


---

Original Source: https://www.mindstick.com/interview/1891/what-is-the-role-of-datareader-object

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
