Query hint-Maxdop

Mario2286 441 Reputation points
2022-02-10T07:17:37.877+00:00

Can I use query hint maxdop for insert, update and delete statement

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,852 questions
0 comments No comments
{count} votes

Accepted answer
  1. CathyJi-MSFT 21,096 Reputation points Microsoft Vendor
    2022-02-10T08:49:27.563+00:00

    Hi @Mario2286 ,

    Quote from MS document Hints (Transact-SQL) – Query;

    >Query hints cannot be specified in an INSERT statement, except when a SELECT clause is used inside the statement.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


1 additional answer

Sort by: Most helpful
  1. Olaf Helper 41,006 Reputation points
    2022-02-10T07:35:15.317+00:00

    Yes, see Hints (Transact-SQL) - Query => Applies to & MAXDOP

    0 comments No comments