Solved

Can one query be spread across multiple cpu's

Posted on 2006-11-20
3
281 Views
Last Modified: 2008-01-09
Hi,

Im looking for some further information on how MS SQL works on dual xeon machines.

If i run a simple query. ie: select * from test. Would that query run on one cpu, or would it be spread across all 4 cpu's?
0
Comment
Question by:zattz
3 Comments
 
LVL 35

Accepted Solution

by:
Raynard7 earned 300 total points
ID: 17978241
Hi,

This article describes how the sql processor divides the query into tasks as appropriate and then how it is recombined.

It is possible for one query to run across multiple processors

http://www.microsoft.com/technet/prodtechnol/sql/70/maintain/sql7qp.mspx
0
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 200 total points
ID: 17978249
note that for most applications, having queries to be split over several CPU costs more than it brings as end result, which is why in all cases until now, I deactivated the parallel query execution.
note: this is not the same setting as allowing sql server to run in general on all cpu (cpu affinity).
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question