data set vs data reader
-
hi i want to know which one is better to use regularly either data set or data reader ?
Thanks bye
It depends on your requirements if you want to display as well as alter the data you will use Dataset but if you only want to display data then should use Data Reader because its a Forward-Only Read-Only model and increase the performance of the application.
-
It depends on your requirements if you want to display as well as alter the data you will use Dataset but if you only want to display data then should use Data Reader because its a Forward-Only Read-Only model and increase the performance of the application.
You can modify data without using a DataSet. In face, I very rarely use DataSets at all. Too large and clunky.
Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website
-
It depends on your requirements if you want to display as well as alter the data you will use Dataset but if you only want to display data then should use Data Reader because its a Forward-Only Read-Only model and increase the performance of the application.
-
hi thanks for immediate reply. but for only data display we can use datagridview . then what will be the difference betn datagridview & data set
Thanks bye
DataGridView is a presentation mechanism. DataSet is an internal storage structure.
Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website
-
hi thanks for immediate reply. but for only data display we can use datagridview . then what will be the difference betn datagridview & data set
Thanks bye
Hi A Dataset cannot be Compared with a datagrid view. they are two different thing in different categories. a Dataset present data to the datagridview,a datareader present data to datagridview. as the Guy said. if you dont want to update the data, if you only want to view the data, and only in the fowardonly mode, you just have to go for datareader. but id you are going to manupilate the data. use dataset. Go here for more info http://www.dotnetspider.com/kb/Article1078.aspx[^] Thank i wish it helps
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com