ADO.NET Question:
Download Questions PDF

What is the difference between data reader and data adapter?

ADO.NET Interview Question
ADO.NET Interview Question

Answer:

DateReader is an forward only and read only cursor type if you are accessing data through DataRead it shows the data on the web form/control but you can not perform the paging feature on that record(because it's forward only type). Reader is best fit to show the Data (where no need to work on data)



DataAdapter is not only connect with the Databse(through Command object) it provide four types of command (InsertCommand, UpdateCommand, DeleteCommand, SelectCommand), It supports to the disconnected Architecture of .NET show we can populate the records to the DataSet. where as Dataadapter is best fit to work on data.

Download ADO.NET Interview Questions And Answers PDF

Previous QuestionNext Question
what are the advantages and disadvantages of using datalist?What is the difference between data reader and data set?