Memory usage\Performance problem



I am experiencing the following problem;

I boot my Windows 2000 sp#4 machine. I check sqlservr.exe's memory usage in
Task manager. It is ca 20 mb, everything is OK. Then I run this query;

select postoffice, count(*) as counter from tblTable
where postoffice is not null
group by postoffice
order by counter DESC

There's no index or constraint on field "postoffice" and tblTable contains
ca 916.000 rows. I thought this query would still execute in only a few
seconds, but it takes minutes. And the worst thing is that sqlserver.exe's
memory usage grows to about 300-400 mb when the query runs. What am I doing
wrong??

Tnx in advance!

/Magnus


.



Relevant Pages

  • Memory Usage
    ... Running a query from Microsoft query, to deposit data into a spreadsheet ... I've noticed the memory usage in task manager keeps increasing every time I ...
    (microsoft.public.excel.programming)
  • Re: How to clear memory usage after executing queries ?
    ... got scared when the memory usage reached 1.7 gig (the machine has 2 gig of ... select distinctfrom packet, then do query ... > Columnist, SQL Server Professional ... > The only way to clear up the memory usage is by stopping SQL Server Service ...
    (microsoft.public.sqlserver.programming)
  • Re: FTS query performance on SQL 2005
    ... road and see is you still have optimal performance. ... effects of cached query results. ... queries, the memory usage was steadily increasing. ...
    (microsoft.public.sqlserver.fulltext)
  • Re: Full Text Search Performance
    ... >> The simplest query that uses the smiplest form of FT on the first table FT ... >> very powerful SAN system. ... Memory usage on the server is not very high so I ... >> SQL Server. ...
    (microsoft.public.sqlserver.fulltext)
  • Re: FTS query performance on SQL 2005
    ... I have achieved a breakthrough in this performance testing, ... of my queries return in under 1/2 second. ... of cached query results. ... memory usage was steadily increasing. ...
    (microsoft.public.sqlserver.fulltext)