Hi



I have a query that gets binary info from the SQL Server.



The problem is that the query is very large and the process that performs it
consumes a lot of memory.



Actually it consumes the amount of memory as defined in the SQL Server
properties (memory tab).



The problem is even bigger, because the process does not release the
consumed memory and if I decrease it then i get a lot of page faults.





Any help would be appreciated



Uzi

Re: memory leak when quering from SQL server by Jon

Jon
Sun Jul 25 14:19:35 CDT 2004

Uzi Baruch <uzibaruch@hotmail.com> wrote:
> I have a query that gets binary info from the SQL Server.
>
> The problem is that the query is very large and the process that performs it
> consumes a lot of memory.
>
> Actually it consumes the amount of memory as defined in the SQL Server
> properties (memory tab).
>
> The problem is even bigger, because the process does not release the
> consumed memory and if I decrease it then i get a lot of page faults.

Are you calling Dispose on everything appropriate (DataReader,
SqlConnection etc)?

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too