Andreas (ah@steria.no) writes:
I have an SQL2000 server running on a 4-cpu 4 GB Win2003 system with
hyperthreading. The batch is running on only one virtual processor. I
would like to utilize all the processors in parallell in order to
speed up the batch. How ?
Most likely, you can't.
First of all, if your batch includes multiple statements, those cannot
be run in parallell. What can happen is that the optimizer decides to
use several processors to run a query. However, far from all queries
can be evaluated with parallel plans.
What you can do, is to use sp_configure to check the setting of "max
degrees of parallelism". If this parameter is 1, then parallelism is
turned, and you could change it to 4. (Not 8.)
Note also that parallel plans are far from always Godsent. Sometimes
parallel plans are plainly ineffective. And even if a query does
execute faster with a parallel plan, other users on the machine may
suffer, as the query monopolize the CPU.
--
Erland Sommarskog, SQL Server MVP,
es****@sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp