Вы находитесь на странице: 1из 2

1.Difference between Typed DataSet and Untyped DataSet S.

No 1 Typed DataSet It provides additional methods, properties and events and thus it makes it easier to use. They have .xsd file (Xml Schema definition) file associated with them and do error checking regarding their schema at design time using the .xsd definitions. We will get advantage of intelliSense in VS. NET. Performance is slower in case of strongly typed dataset. In complex environment, strongly typed dataset's are difficult to administer. Typed DataSets use explicit names and DataTypes for their members. ex: northwindDataSet.Products.Produ ctNameColumn.Caption = "pnames"; 2.Difference between DataView and DataTable Untyped DataSet It is not as easy to use as strongly typed dataset. They do not do error checking at the design time as they are filled at run time when the code executes.

3 4 5

We cannot get an advantage of intelliSense. Performance is faster in case of Untyped dataset. Untyped datasets are easy to administer. UnTyped DataSets use table and column collections for their members ex: ds.Tables["emp"].Columns["eno"].Rea dOnly=true;

S.No 1

DataView Read-only i.e., DataView can be used to select the data. Is a reference to an existing DataTable. Cannot be populated from scratch; must be instantiated with a reference to an existing DataTable. Data is a reference to an existing DataTable, and does not consume space.

DataTable Read/Write i.e., Datatable can be used to edit or select or delete or insert a data. Can be created empty and then populated

Data takes storage space.

Can sort or filter rows without modifying the underlying data. Rows and columns can be hidden and revealed repeatedly.

Can add/edit/delete rows, columns, and data, and all changes are persistent.

5 6

Can return a DataTable version Can be cloned of the view A live reference to a DataTable; any changes in the DataTable data is immediately reflected in the view. Supports calculated columns, which are columns with a value calculated on the fly by combining or manipulating other columns. Can hide or show selected columns Is source data; does not contain references

Does not support calculated columns

No row or column hiding

3.Difference between Connected and Disconnected Environment

S.No 1

Connected Environment Connected Environment needs a constantly connection of user to data source while performing any operation. Only one operation can be performed at a time in connection Environment. DataReader is used in Connection Environment. It is slower in speed. We get updated data in it.

Disconnected Environment Disconnected Environment does not need any connection.

Multiple operations can be performed.

3 4 5

DataSet is used in it. Disconnected Environment has a good speed. There is a problem of dirty read.

Please visit my blog @ http://onlydifferencefaqs.blogspot.in/

Вам также может понравиться