Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 6th, 2006, 04:07 AM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datasets Advantages and Disadvantages

hello:
my name is Ali Abdolrahmani ([email protected]). i am a beginner in Microsoft .NET taking some courses. i want to know about goods and bads of using datasets. more clearly, what are the advantages and disadvantages of datasets and using them. is there any article or something like that i can read and learn?

thanks in advance
 
Old December 6th, 2006, 11:46 AM
Registered User
 
Join Date: Dec 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Advantages are that you can cache the data and do simple filtering and sorting, something that you will need for basis things. For advanced things, they are pretty much useless as it is more problem then support.

For instance, to filter columns, to construct advanced SQL queeries or something like that, you will have to apply whole set of workarounds, probably learn XPath (form of SQL in XML world) as none of those every day operations are not possible native using DataSets...

So, if you just need to grab some tables localy and use simple cursor to read them all, dataset is good enough. If your project is evolving, better see some other solution...

 
Old December 7th, 2006, 01:35 AM
Authorized User
 
Join Date: Sep 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Instead of thinking of advantages and disadvantages
od datast. Use must compare dataset with datareader as both solves different needs. If u just want to fetch data and display , u must use datareader.Its Very fast.But u cannot do DML in radareader. Aslo datareader canot be stored in memory for future updates. This is solved by dataset.which can be stored inmemory , we can insert , update or delete the records in dataset , then we can push the changes to original datasource at future.

 
Old December 7th, 2006, 09:56 AM
Registered User
 
Join Date: Dec 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

>>>Its Very fast.
Yeah... beside the fact that you keep connection open all the time.
And for large tables, and multiple users.....






Similar Threads
Thread Thread Starter Forum Replies Last Post
Advantages of SSIS over DTS carumuga SQL Server 2005 1 September 11th, 2008 07:51 AM
Advantages /Disadvantages of ActiveX DLL & ActiveX priyank Beginning VB 6 6 February 19th, 2007 11:34 AM
Disadvantages of .NET dayaananthanm .NET Framework 1.x 4 August 5th, 2006 10:46 AM
Advantages/Disadvantages SQL Server 2005 chevignona SQL Server 2005 1 July 28th, 2006 10:43 AM
Abt Advantages & disadvantages of Application Vari anandham Classic ASP Databases 1 May 13th, 2005 06:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.