Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i'm trying to create c# app
i was wondring what's the different between mode connected
and disconnected and where should i use everyone of them??
Posted
Updated 14-Apr-14 16:54pm
v2
Comments
ZurdoDev 2-Apr-14 21:15pm    
What are you referring to?

This is the impossible nonsense. Let's see. Your tags are "ASP.NET" and "C#", that is, server-side technology. Now, you are disconnected from the server. Do you have any access to ASP.NET? Of course not. Instead of asking totally invalid questions about "difference", better spend some time in learning what Web does, at least some basics.

—SA
 
Share this answer
 
Comments
youseph 2-Apr-14 21:57pm    
sorry my fault, i'm talkin about ado.net
Refer - ADO.NET Architecture[^]
Quote:
Choosing a DataReader or a DataSet

When you decide whether your application should use a DataReader (see Retrieving Data Using a DataReader (ADO.NET)[^]) or a DataSet (see DataSets, DataTables, and DataViews (ADO.NET)[^]), consider the type of functionality that your application requires. Use a DataSet to do the following:
  • Cache data locally in your application so that you can manipulate it. If you only need to read the results of a query, the DataReader is the better choice.
  • Remote data between tiers or from an XML Web service.
  • Interact with data dynamically such as binding to a Windows Forms control or combining and relating data from multiple sources.
  • Perform extensive processing on data without requiring an open connection to the data source, which frees the connection to be used by other clients.

If you do not require the functionality provided by the DataSet, you can improve the performance of your application by using the DataReader to return your data in a forward-only, read-only manner. Although the DataAdapter uses the DataReader to fill the contents of a DataSet (see Populating a DataSet from a DataAdapter (ADO.NET)[^]), by using the DataReader, you can boost performance because you will save memory that would be consumed by the DataSet, and avoid the processing that is required to create and fill the contents of the DataSet.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900