Re: MS Best Practice - Load subset of a single Row
- From: "Sahil Malik [MVP]" <contactmethrumyblog@xxxxxxxxxx>
- Date: Mon, 4 Apr 2005 21:59:30 -0400
I meant - stay away from writing your own cursor.
Anyway, 100-200 columns in a table .. EEEEEEEEEEEEEEEEEEEE !!!!
But I'm gonna try and stay out of optimizing your database.
If you are sure that the query structure doesn't change too often, I say use
dynamic SQL to fetch the data you need.
How much data are we talking? (Rows?)
- Sahil Malik [MVP]
http://codebetter.com/blogs/sahil.malik/
"Jim Brandley" <jim.brandley@xxxxxxxxxxxx> wrote in message
news:1112642163.616688.210270@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Are you saying that opening a datareader or filling a datatable do not
> create cursors on the database server? I do not see how those functions
> could be performed without a cursor.
>
> I am constructing the select statement dynamically based on the content
> of the request, and generating input parameters to match. Some of the
> tables I have to query have 100 - 200 columns, and I do not want to
> retrieve all for the (generally small) subset the users require. These
> forms do not change frequently, once or twice while the users configure
> the package to suit their needs, thereafter only as their business
> rules and requirements change. The prepared statements should remain in
> the db server cache most of the time, because I always generate the
> same select. The returned data lives on the web server only for a short
> time, and is likely different content (same columns but different
> different rows) for each session.
>
.
- Follow-Ups:
- References:
- MS Best Practice - Load subset of a single Row
- From: Jim Brandley
- Re: MS Best Practice - Load subset of a single Row
- From: Sahil Malik [MVP]
- Re: MS Best Practice - Load subset of a single Row
- From: Jim Brandley
- MS Best Practice - Load subset of a single Row
- Prev by Date: Re: DeriveParameters and Jet OLEDB Provider
- Next by Date: Re: Schema Collection -> Strongly Typed Dataset
- Previous by thread: Re: MS Best Practice - Load subset of a single Row
- Next by thread: Re: MS Best Practice - Load subset of a single Row
- Index(es):
Relevant Pages
|