Define connected and disconnected data access in ADO.NET?

 Posted by Tripati_tutu on 10/8/2010 | Category: ADO.NET Interview questions | Views: 5095 | Points: 40

In connected data access you can connect through the DataReader objects of data provider. This object requires exclusive use of the connection object. It can provide fast and forward-only data access. It doesn't allow editing.

Disconnected data access is achieved through the DataAdapter object. This object establishes connection, executes the command, load data in the DataSet. The Dataset works independent of database. It contains data in the memory and can edit the data. The changes in the data can be transmitted to the database using Update method of DataAdapter object.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response