Setting Maximum Degree of Parallelism per query to solve CXPacket waits

  • Is there a way to set the MAXDOP to 1 when I run a query and set it back to 0 after the query is done?I see too many CXPacket waits on my database.

    I do not want to use something like

    EXEC sp_configure 'max degree of parallelism',1

    RECONFIGURE WITH OVERRIDE

    which will change setting for all whole server.

  • You can use the query hint:

    [font="Courier New"]SELECT

    *

    FROM

    MyTable

    OPTION (MAXDOP 1)[/font]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply