This is a mirror of official site: http://jasper-net.blogspot.com/

SQL SERVER – MAXDOP Settings to Limit Query to Run on Specific CPU

| Tuesday, March 16, 2010
This is very simple and known tip. Query Hint MAXDOP – Maximum Degree Of Parallelism can be set to restrict query to run on a certain CPU. Please note that this query cannot restrict or dictate which CPU to be used, but for sure, it restricts the usage of number of CPUs in a single batch.

Let us consider the following example of this query.

The following query usually runs on multicore on a dual core machine (please note it may not be the case with your machine).

USE AdventureWorks
GO
SELECT *
FROM Sales.SalesOrderDetail
ORDER BY ProductID
GO

Read more: Journey to SQL Authority with Pinal Dave

Posted via email from jasper22's posterous

0 comments: