Click here to Skip to main content
15,878,959 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
when we use dataset and when datareader? why? if we want to edit 1000 records in database which is the best dataset or datareader?
Posted
Comments
Sergey Alexandrovich Kryukov 26-Jan-12 2:46am    
1000 records, and..?
--SA

There is no one single unambiguous answers to the question when and why. It depends on many factors in too many different scenarios. You don't need to observe all thinkable scenarios at once, right? Your reference to 1000 records tells us almost nothing.

The whole approach is wrong. You should first learn how things work and then try to link this knowledge with your problem and requirements trying to use logical reasoning.

I usually recommend this CodeProject article for starters: Using ADO.NET for beginners[^].

See also:
http://en.wikipedia.org/wiki/ADO.NET[^],
a place to start: http://msdn.microsoft.com/en-us/library/aa286484.aspx[^].

—SA
 
Share this answer
 
Comments
thatraja 26-Jan-12 5:17am    
Yep, that's a nice CP article, 5!
Sergey Alexandrovich Kryukov 26-Jan-12 11:32am    
Thank you, Raja.
--SA
Here are some pages which may be useful for you :
http://www.4guysfromrolla.com/articles/050405-1.aspx[^]

http://www.sitepoint.com/dataset-datareader/[^]

http://ramanisandeep.net/2009/09/21/datareader-vs-dataset/[^]

Google for DataReader vs DataSet for more results.
 
Share this answer
 
Comments
thatraja 26-Jan-12 5:18am    
5! Now you are a platinum authority
Amir Mahfoozi 26-Jan-12 5:22am    
Wow ! yes thanks a lot Thatraja :) It's wonderful ;)
Sergey Alexandrovich Kryukov 28-Jan-12 17:40pm    
I want to join the congratulations!
My 5, too.
--SA
Amir Mahfoozi 29-Jan-12 0:01am    
Thanks SA :)

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