Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I determine the server's MAXDOP setting in SQL Server?

Tags:

I see lots of sites that show how to set it, but I just want to see what it is first. What is the command to do this?

like image 600
JohnnyM Avatar asked May 13 '10 21:05

JohnnyM


1 Answers

More simply if you wish to use a pure SQL script you can use the following which will give you the values for both 'cost threshold for parallelism' and 'max degree of parallelism' or many other things if you remove the WHERE clause ;)

SELECT
    name,
    value_in_use
FROM
    sys.configurations
WHERE
    description LIKE '%parallelism%'
like image 95
faygate Avatar answered Oct 23 '22 23:10

faygate