Solved

Can one query be spread across multiple cpu's

Posted on 2006-11-20
3
270 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now