wackoyacky
05-11-2007, 04:43 AM
As we all know that DataReader is faster than Dataset, but DataReader maintains a connection with the database and cannot be disconnected until the last record is read.
So what I did was I created a Struct that defines the fields that are being returned and populate this Struct with the DataReader and return the Struct to the UI. My question is, is this still faster than passing DataSet instead on each layer?
So what I did was I created a Struct that defines the fields that are being returned and populate this Struct with the DataReader and return the Struct to the UI. My question is, is this still faster than passing DataSet instead on each layer?