Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataReader vs DataTable vs DataSet

Status
Not open for further replies.

aspnetvbnetnerd

Programmer
Feb 3, 2008
31
0
0
SE
I have a class works with the database.

I almost always I return DataReader, but what is the best way to return DataTable, DataSet Or DataReader or maybe something else.

George
 
DataReader returns a "ReadOnly" data from a table/Query
Dataset is a something like a miniature database that can have many datatables & Relations between them etc..

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top