PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET sqldatareader

Reply

sqldatareader

 
Thread Tools Rate Thread
Old 20-06-2006, 09:52 PM   #1
Jeremy Chapman
Guest
 
Posts: n/a
Default sqldatareader


The most efficient way to get a recordset out of sql server is probably by
using a sqldatareader. I want to make a generic class that I can populate
with data from a datareader (an extremely slimmed down datatable, with less
functionality I suppose). Essentially it would store an array of arrays of
objects, and a list of column names. The classes data would all be
populated by passing a sqldatareader to a method of the class. This class
would have to be able to be efficiently stored in asp.net viewstate/session
and be quickly iterated through. What kind of data structures would you
guys suggest to accomplish holding this type of data?


  Reply With Quote
Old 21-06-2006, 06:02 AM   #2
Cor Ligthert [MVP]
Guest
 
Posts: n/a
Default Re: sqldatareader

Jeremy,

I am curious, why is what you write efficient I see only inefficiency in
your text.

You describes how to make a wheel, only it is as massive wheel as the first
ones.

Just my thought,

Cor

"Jeremy Chapman" <please@Idontlikespam> schreef in bericht
news:eCso8tKlGHA.3924@TK2MSFTNGP03.phx.gbl...
> The most efficient way to get a recordset out of sql server is probably by
> using a sqldatareader. I want to make a generic class that I can populate
> with data from a datareader (an extremely slimmed down datatable, with
> less functionality I suppose). Essentially it would store an array of
> arrays of objects, and a list of column names. The classes data would all
> be populated by passing a sqldatareader to a method of the class. This
> class would have to be able to be efficiently stored in asp.net
> viewstate/session and be quickly iterated through. What kind of data
> structures would you guys suggest to accomplish holding this type of data?
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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