When running reports through SQL cpu goes to 100% for the duration of the report. Pos 2 mins

We have a SBS 2003 Premium running the SBS SQL Server. Everything on the server works fine except when we come to print reports through the SQL database. As soon as we do the CPU goes to 100% and stays there for the duration of the time required to gather the information to produce the report which can be anything up to 3-4 mins during which time everybody and everthing else grinds to a halt.

The spec of the server is  a Pentium 4 - 2.8 with 4 gb of ram & 2 X 160 GB HD'S configured as RAID 1 on an Adaptec controller.
catsystemsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slam69Commented:
the query that is pulling the sql reqort does it entail peforming a full table scan or is it an indexed scan. if it is a table scan then this is why you are seein gthe large query time especially if it is a large table.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
catsystemsAuthor Commented:
Sorry about the delay in comming back but your solution worked... many thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SBS

From novice to tech pro — start learning today.