Why doesn't Data Access App Block return DataTable? RRS feed

  • Question

  • User-296654088 posted
    Hi, I used to always use Datasets in my code. l usually retrieved data from Stored Procedures that would only fill up one table in the Dataset. Then I decided to use DataTables which l'm sure affect my application's performance in a positive way. I wonder why Microsoft decided to return only Datasets in Data Access application blocks which are supposed to be very efficient code.
    Saturday, May 15, 2004 12:18 AM

All replies

  • User1119954915 posted
    because a DataTable is just a part of a DataSet you can always say: Dim dt As New DataTable dt = SQLHelper.ExecuteDataSet(CONNECT, CommandType.StoredProcedure, "ProcName").Tables(0) if you didn't want to go through declaring a DataSet
    Friday, May 28, 2004 3:03 PM