Solved

Can one query be spread across multiple cpu's

Posted on 2006-11-20
3
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 143

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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how the fundamental information of how to create a table.

707 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