Re: dataset question - to preserve DB resources
- From: "Marina" <someone@xxxxxxxxxx>
- Date: Thu, 15 Dec 2005 11:50:34 -0500
Don't bother with the SqlDataReader. Get the data straight into the dataset
(or datatable) using the SqlDataAdapter's Fill method, then do your
processing.
"Chris" <rooster575@xxxxxxxxxxx> wrote in message
news:OVpZUYZAGHA.344@xxxxxxxxxxxxxxxxxxxxxxx
>I have a procedure which runs a heavy SQL query, loops through a SQLreader
>and closes the reader and connection.
>
> Within the loop, there is a lot of code/processing that must remain. I'd
> like to open the DB connection, move the data to a dataSet or something to
> get the data in memory, and then immediately close the DB
> reader/connection to free up DB resources. Then I can loop through the
> dataSet and perform all the necessary work, without holding up the
> database for other users.
>
> My question, using ASP.NET 1.1, can someone provide an example of this
> approach?
>
> Thanks in advance.
>
.
- Follow-Ups:
- Re: dataset question - to preserve DB resources
- From: Chris
- Re: dataset question - to preserve DB resources
- References:
- dataset question - to preserve DB resources
- From: Chris
- dataset question - to preserve DB resources
- Prev by Date: Re: 1.1 and 2.0 running side by side
- Next by Date: NO DLL in bin folder after building
- Previous by thread: dataset question - to preserve DB resources
- Next by thread: Re: dataset question - to preserve DB resources
- Index(es):
Relevant Pages
|