1) What are the differences between DataReader and
DataAdapter?
S.N DataReader DataAdapter
o 1 Works in Connected Mode Works in Disconnected Mode 2 Can have only one record at Can have more than 1 records a time 3 Is ForwardOnly and Readonly Can navigate front and back and editable 4 Faster Slower
2) What are the differences between DataSet and DataReader?
S.N DataSet DataReader
o 1 Works in Disconnected Mode Works in Connected Mode 2 Can navigate back and forth Can navigate forward only 3 Data is editable Data is Readonly 4 Can contain more than one Can contain only one row at a table and relationships time 5 Slower as having more Faster when compared with overhead DataSet
3) What is the difference between DataSet.Copy() and
DataSet.Clone()?
S.N DataSet.Copy() DataSet.Clone()
o 1 DataSet.Copy() copies both DataSet.Clone() copies the the structure and data structure of the DataSet, including all DataTable schemas, relations, and constraints and it does not copy any data
4) What are the differences between RecordSet and DataSet?
S.N RecordSet DataSet
o 1 RecordSet provides data of DataSet is a data structure which one row at an instant represents the complete table data at the same time 2 RecordSet always needs an DataSet needs connection only Open connection to read the for retrieving the data. After data from data sources retrieve the data connection is not necessary 3 RecordSet is able to load the DataSet has the capability to structure and data of only store the structure and data of one table at a time multiple tables at a time 4 RecordSet does not support DataSet enforces data integrity constraints of Databases by using Constraints
5) What are the differences between ADO and ADO.Net?
S.N ADO ADO.Net
o 1 It supports connected model It supports disconnected model 2 It uses record set It uses data set 3 XML support is less XML support is more