HighTechTalks DotNet Forums  

Dataset ar DataReader?

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Dataset ar DataReader? in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Wannano
 
Posts: n/a

Default Dataset ar DataReader? - 07-19-2007 , 09:40 AM






I am writing a remoting application and my server object passes result sets
from a SQL Server database to the clients. What data object should I use if
I want to maximize performance: Dataset, DataReader, other?



Reply With Quote
  #2  
Old   
Spam Catcher
 
Posts: n/a

Default Re: Dataset ar DataReader? - 07-19-2007 , 01:44 PM






"Wannano" <marc.biotteau (AT) sympatico (DOT) ca> wrote in
news:OeqGwpgyHHA.4276 (AT) TK2MSFTNGP05 (DOT) phx.gbl:

Quote:
I am writing a remoting application and my server object passes result
sets from a SQL Server database to the clients. What data object
should I use if I want to maximize performance: Dataset, DataReader,
other?
It really depends on the circumstance, but in general, DataReaders are
faster and more efficent than Datasets.


Reply With Quote
  #3  
Old   
Günter Prossliner
 
Posts: n/a

Default Re: Dataset ar DataReader? - 07-20-2007 , 02:41 AM



Hello Wannano!

Quote:
What data
object should I use if I want to maximize performance: Dataset,
DataReader, other?
A Dataset is filled by a DataReader. So when you just read simple rows, a
DataReader will be allways faster than a DataSet.

But: A DataSet is much more than a collection of rows. When you use the rich
DataSet features it may be better to use the DataSet than implementing this
behavior on you own.


GP




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.